home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / contrib / float / float.dtx next >
LaTeX Document  |  1995-03-10  |  32.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document text default
98% file LaTeX auxiliary file, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 5c 69 66 66 61 6c | 73 65 0a 25 25 20 50 61 |% \iffal|se.%% Pa|
|00000010| 63 6b 61 67 65 20 60 66 | 6c 6f 61 74 27 20 74 6f |ckage `f|loat' to|
|00000020| 20 75 73 65 20 77 69 74 | 68 20 4c 61 54 65 58 20 | use wit|h LaTeX |
|00000030| 32 65 0a 25 25 20 43 6f | 70 79 72 69 67 68 74 20 |2e.%% Co|pyright |
|00000040| 28 43 29 20 31 39 39 31 | 2d 31 39 39 34 20 41 6e |(C) 1991|-1994 An|
|00000050| 73 65 6c 6d 20 4c 69 6e | 67 6e 61 75 2c 20 61 6c |selm Lin|gnau, al|
|00000060| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000070| 64 0a 25 25 0a 25 25 20 | 59 6f 75 20 6d 61 79 20 |d.%%.%% |You may |
|00000080| 75 73 65 20 61 6e 64 20 | 64 69 73 74 72 69 62 75 |use and |distribu|
|00000090| 74 65 20 74 68 69 73 20 | 66 69 6c 65 20 66 72 65 |te this |file fre|
|000000a0| 65 6c 79 2c 20 70 72 6f | 76 69 64 65 64 20 74 68 |ely, pro|vided th|
|000000b0| 61 74 0a 25 25 20 79 6f | 75 20 64 6f 6e 27 74 20 |at.%% yo|u don't |
|000000c0| 6d 61 6b 65 20 61 6e 79 | 20 6d 6f 6e 65 79 20 6f |make any| money o|
|000000d0| 66 66 20 69 74 20 6f 72 | 20 70 72 65 74 65 6e 64 |ff it or| pretend|
|000000e0| 20 74 68 61 74 20 79 6f | 75 20 77 72 6f 74 65 20 | that yo|u wrote |
|000000f0| 69 74 2e 0a 25 0a 25 3c | 70 61 63 6b 61 67 65 3e |it..%.%<|package>|
|00000100| 5c 4e 65 65 64 73 54 65 | 58 46 6f 72 6d 61 74 7b |\NeedsTe|XFormat{|
|00000110| 4c 61 54 65 58 32 65 7d | 5b 31 39 39 34 2f 30 36 |LaTeX2e}|[1994/06|
|00000120| 2f 30 31 5d 0a 25 3c 70 | 61 63 6b 61 67 65 3e 5c |/01].%<p|ackage>\|
|00000130| 50 72 6f 76 69 64 65 73 | 50 61 63 6b 61 67 65 7b |Provides|Package{|
|00000140| 66 6c 6f 61 74 7d 0a 25 | 3c 70 61 63 6b 61 67 65 |float}.%|<package|
|00000150| 3e 20 20 20 20 20 20 20 | 20 20 5b 31 39 39 34 2f |> | [1994/|
|00000160| 30 36 2f 32 30 20 76 31 | 2e 32 20 46 6c 6f 61 74 |06/20 v1|.2 Float|
|00000170| 20 65 6e 68 61 6e 63 65 | 6d 65 6e 74 73 20 28 41 | enhance|ments (A|
|00000180| 4c 29 5d 0a 25 0a 25 3c | 2a 64 72 69 76 65 72 3e |L)].%.%<|*driver>|
|00000190| 0a 5c 64 6f 63 75 6d 65 | 6e 74 63 6c 61 73 73 7b |.\docume|ntclass{|
|000001a0| 6c 74 78 64 6f 63 7d 0a | 5c 75 73 65 70 61 63 6b |ltxdoc}.|\usepack|
|000001b0| 61 67 65 7b 66 6c 6f 61 | 74 7d 0a 5c 47 65 74 46 |age{floa|t}.\GetF|
|000001c0| 69 6c 65 49 6e 66 6f 7b | 66 6c 6f 61 74 2e 73 74 |ileInfo{|float.st|
|000001d0| 79 7d 0a 5c 45 6e 61 62 | 6c 65 43 72 6f 73 73 72 |y}.\Enab|leCrossr|
|000001e0| 65 66 73 20 20 20 20 20 | 20 20 20 20 0a 25 5c 44 |efs | .%\D|
|000001f0| 69 73 61 62 6c 65 43 72 | 6f 73 73 72 65 66 73 20 |isableCr|ossrefs |
|00000200| 20 20 25 20 53 61 79 20 | 5c 44 69 73 61 62 6c 65 | % Say |\Disable|
|00000210| 43 72 6f 73 73 72 65 66 | 73 20 69 66 20 69 6e 64 |Crossref|s if ind|
|00000220| 65 78 20 69 73 20 72 65 | 61 64 79 0a 25 5c 52 65 |ex is re|ady.%\Re|
|00000230| 63 6f 72 64 43 68 61 6e | 67 65 73 20 20 20 20 20 |cordChan|ges |
|00000240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 47 | | % G|
|00000250| 61 74 68 65 72 20 75 70 | 64 61 74 65 20 69 6e 66 |ather up|date inf|
|00000260| 6f 72 6d 61 74 69 6f 6e | 0a 5c 43 6f 64 65 6c 69 |ormation|.\Codeli|
|00000270| 6e 65 49 6e 64 65 78 20 | 20 20 20 20 20 20 20 20 |neIndex | |
|00000280| 20 20 20 20 20 20 20 20 | 20 25 20 49 6e 64 65 78 | | % Index|
|00000290| 20 63 6f 64 65 20 62 79 | 20 6c 69 6e 65 20 6e 75 | code by| line nu|
|000002a0| 6d 62 65 72 0a 5c 74 69 | 74 6c 65 7b 41 6e 20 49 |mber.\ti|tle{An I|
|000002b0| 6d 70 72 6f 76 65 64 20 | 45 6e 76 69 72 6f 6e 6d |mproved |Environm|
|000002c0| 65 6e 74 20 66 6f 72 20 | 46 6c 6f 61 74 73 5c 74 |ent for |Floats\t|
|000002d0| 68 61 6e 6b 73 7b 54 68 | 69 73 20 66 69 6c 65 0a |hanks{Th|is file.|
|000002e0| 20 20 20 20 20 20 20 68 | 61 73 20 76 65 72 73 69 | h|as versi|
|000002f0| 6f 6e 20 6e 75 6d 62 65 | 72 20 5c 66 69 6c 65 76 |on numbe|r \filev|
|00000300| 65 72 73 69 6f 6e 2e 0a | 20 20 20 20 20 20 20 50 |ersion..| P|
|00000310| 61 72 74 20 6f 66 20 74 | 68 69 73 20 73 74 79 6c |art of t|his styl|
|00000320| 65 20 6f 70 74 69 6f 6e | 20 69 73 20 62 61 73 65 |e option| is base|
|00000330| 64 20 6f 6e 20 74 68 65 | 20 5c 74 65 78 74 73 66 |d on the| \textsf|
|00000340| 7b 68 65 72 65 7d 20 6f | 70 74 69 6f 6e 0a 20 20 |{here} o|ption. |
|00000350| 20 20 20 20 20 62 79 20 | 44 61 76 69 64 20 50 2e | by |David P.|
|00000360| 20 43 61 72 6c 69 73 6c | 65 20 28 5c 74 65 78 74 | Carlisl|e (\text|
|00000370| 74 74 7b 63 61 72 6c 69 | 73 6c 65 40 63 73 2e 6d |tt{carli|sle@cs.m|
|00000380| 61 6e 2e 61 63 2e 75 6b | 7d 29 2c 0a 20 20 20 20 |an.ac.uk|}),. |
|00000390| 20 20 20 77 68 6f 20 61 | 6c 73 6f 20 70 72 6f 76 | who a|lso prov|
|000003a0| 69 64 65 64 20 68 65 6c | 70 66 75 6c 20 63 72 69 |ided hel|pful cri|
|000003b0| 74 69 63 69 73 6d 2e 7d | 7d 0a 5c 61 75 74 68 6f |ticism.}|}.\autho|
|000003c0| 72 7b 41 6e 73 65 6c 6d | 20 4c 69 6e 67 6e 61 75 |r{Anselm| Lingnau|
|000003d0| 5c 5c 5c 74 65 78 74 74 | 74 7b 6c 69 6e 67 6e 61 |\\\textt|t{lingna|
|000003e0| 75 40 6d 61 74 68 2e 75 | 6e 69 2d 66 72 61 6e 6b |u@math.u|ni-frank|
|000003f0| 66 75 72 74 2e 64 65 7d | 7d 25 0a 5c 64 61 74 65 |furt.de}|}%.\date|
|00000400| 7b 5c 66 69 6c 65 64 61 | 74 65 7d 0a 5c 66 6c 6f |{\fileda|te}.\flo|
|00000410| 61 74 73 74 79 6c 65 7b | 72 75 6c 65 64 7d 0a 5c |atstyle{|ruled}.\|
|00000420| 6e 65 77 66 6c 6f 61 74 | 7b 50 72 6f 67 72 61 6d |newfloat|{Program|
|00000430| 7d 7b 74 62 70 7d 7b 6c | 6f 70 7d 5b 73 65 63 74 |}{tbp}{l|op}[sect|
|00000440| 69 6f 6e 5d 0a 5c 66 6c | 6f 61 74 73 74 79 6c 65 |ion].\fl|oatstyle|
|00000450| 7b 70 6c 61 69 6e 7d 0a | 5c 6e 65 77 66 6c 6f 61 |{plain}.|\newfloa|
|00000460| 74 7b 45 78 61 6d 70 6c | 65 7d 7b 74 7d 7b 6c 6f |t{Exampl|e}{t}{lo|
|00000470| 78 7d 5b 73 65 63 74 69 | 6f 6e 5d 0a 5c 66 6c 6f |x}[secti|on].\flo|
|00000480| 61 74 73 74 79 6c 65 7b | 62 6f 78 65 64 7d 0a 5c |atstyle{|boxed}.\|
|00000490| 72 65 73 74 79 6c 65 66 | 6c 6f 61 74 7b 74 61 62 |restylef|loat{tab|
|000004a0| 6c 65 7d 0a 5c 62 65 67 | 69 6e 7b 64 6f 63 75 6d |le}.\beg|in{docum|
|000004b0| 65 6e 74 7d 0a 5c 6d 61 | 6b 65 74 69 74 6c 65 0a |ent}.\ma|ketitle.|
|000004c0| 5c 44 6f 63 49 6e 70 75 | 74 7b 66 6c 6f 61 74 2e |\DocInpu|t{float.|
|000004d0| 64 74 78 7d 0a 5c 65 6e | 64 7b 64 6f 63 75 6d 65 |dtx}.\en|d{docume|
|000004e0| 6e 74 7d 0a 25 3c 2f 64 | 72 69 76 65 72 3e 0a 25 |nt}.%</d|river>.%|
|000004f0| 20 5c 66 69 0a 25 0a 25 | 20 5c 43 68 65 63 6b 53 | \fi.%.%| \CheckS|
|00000500| 75 6d 7b 34 34 37 7d 0a | 25 0a 25 20 5c 63 68 61 |um{447}.|%.% \cha|
|00000510| 6e 67 65 73 7b 76 31 2e | 32 7d 7b 32 30 20 4a 75 |nges{v1.|2}{20 Ju|
|00000520| 6e 20 39 34 7d 7b 41 64 | 61 70 74 65 64 20 66 6f |n 94}{Ad|apted fo|
|00000530| 72 20 4c 61 54 65 58 32 | 65 7d 0a 25 20 5c 63 68 |r LaTeX2|e}.% \ch|
|00000540| 61 6e 67 65 73 7b 76 31 | 2e 31 64 7d 7b 31 37 20 |anges{v1|.1d}{17 |
|00000550| 44 65 63 20 39 32 7d 7b | 46 69 78 65 64 20 64 6f |Dec 92}{|Fixed do|
|00000560| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 7d 0a 25 20 5c |cumentat|ion}.% \|
|00000570| 63 68 61 6e 67 65 73 7b | 76 31 2e 31 63 7d 7b 31 |changes{|v1.1c}{1|
|00000580| 37 20 44 65 63 20 39 32 | 7d 7b 52 65 6d 6f 76 65 |7 Dec 92|}{Remove|
|00000590| 64 20 73 70 75 72 69 6f | 75 73 20 77 68 69 74 65 |d spurio|us white|
|000005a0| 73 70 61 63 65 7d 0a 25 | 20 5c 63 68 61 6e 67 65 |space}.%| \change|
|000005b0| 73 7b 76 31 2e 31 62 7d | 7b 31 37 20 44 65 63 20 |s{v1.1b}|{17 Dec |
|000005c0| 39 32 7d 7b 55 73 65 64 | 20 60 40 45 73 70 68 61 |92}{Used| `@Espha|
|000005d0| 63 6b 20 69 6e 20 70 6c | 61 63 65 20 6f 66 20 60 |ck in pl|ace of `|
|000005e0| 40 65 73 70 68 61 63 6b | 7d 0a 25 0a 25 20 5c 44 |@esphack|}.%.% \D|
|000005f0| 6f 4e 6f 74 49 6e 64 65 | 78 7b 5c 40 4d 69 69 2c |oNotInde|x{\@Mii,|
|00000600| 5c 40 4d 69 76 2c 5c 40 | 63 6f 6e 73 2c 5c 40 63 |\@Miv,\@|cons,\@c|
|00000610| 75 72 72 6c 69 73 74 2c | 5c 40 64 62 6c 61 72 67 |urrlist,|\@dblarg|
|00000620| 2c 5c 40 64 62 6c 64 65 | 66 65 72 6c 69 73 74 7d |,\@dblde|ferlist}|
|00000630| 0a 25 20 5c 44 6f 4e 6f | 74 49 6e 64 65 78 7b 5c |.% \DoNo|tIndex{\|
|00000640| 40 64 62 6c 66 6c 6f 61 | 74 2c 5c 40 64 6f 74 74 |@dblfloa|t,\@dott|
|00000650| 65 64 74 6f 63 6c 69 6e | 65 2c 5c 40 65 68 61 2c |edtoclin|e,\@eha,|
|00000660| 5c 40 45 73 70 68 61 63 | 6b 2c 5c 40 66 6c 6f 61 |\@Esphac|k,\@floa|
|00000670| 74 7d 0a 25 20 5c 44 6f | 4e 6f 74 49 6e 64 65 78 |t}.% \Do|NotIndex|
|00000680| 7b 5c 40 66 6c 6f 61 74 | 70 65 6e 61 6c 74 79 2c |{\@float|penalty,|
|00000690| 5c 40 69 66 6e 65 78 74 | 63 68 61 72 2c 5c 40 69 |\@ifnext|char,\@i|
|000006a0| 66 75 6e 64 65 66 69 6e | 65 64 2c 5c 40 6c 61 74 |fundefin|ed,\@lat|
|000006b0| 65 78 65 72 72 7d 0a 25 | 20 5c 44 6f 4e 6f 74 49 |exerr}.%| \DoNotI|
|000006c0| 6e 64 65 78 7b 5c 40 6d | 6b 62 6f 74 68 2c 5c 40 |ndex{\@m|kboth,\@|
|000006d0| 6e 61 6d 65 64 65 66 2c | 5c 40 6e 61 6d 65 75 73 |namedef,|\@nameus|
|000006e0| 65 2c 5c 40 70 61 72 62 | 6f 78 72 65 73 74 6f 72 |e,\@parb|oxrestor|
|000006f0| 65 2c 5c 40 73 70 61 63 | 65 73 7d 0a 25 20 5c 44 |e,\@spac|es}.% \D|
|00000700| 6f 4e 6f 74 49 6e 64 65 | 78 7b 5c 40 73 74 61 72 |oNotInde|x{\@star|
|00000710| 74 74 6f 63 2c 5c 40 74 | 65 6d 70 61 2c 5c 40 74 |ttoc,\@t|empa,\@t|
|00000720| 65 6d 70 62 6f 78 61 2c | 5c 40 74 65 6d 70 64 69 |empboxa,|\@tempdi|
|00000730| 6d 61 2c 5c 40 77 61 72 | 6e 69 6e 67 7d 0a 25 20 |ma,\@war|ning}.% |
|00000740| 5c 44 6f 4e 6f 74 49 6e | 64 65 78 7b 5c 61 64 64 |\DoNotIn|dex{\add|
|00000750| 63 6f 6e 74 65 6e 74 73 | 6c 69 6e 65 2c 5c 61 64 |contents|line,\ad|
|00000760| 64 74 6f 63 6f 75 6e 74 | 65 72 2c 5c 61 64 76 61 |dtocount|er,\adva|
|00000770| 6e 63 65 2c 5c 61 72 61 | 62 69 63 2c 5c 62 66 73 |nce,\ara|bic,\bfs|
|00000780| 65 72 69 65 73 7d 0a 25 | 20 5c 44 6f 4e 6f 74 49 |eries}.%| \DoNotI|
|00000790| 6e 64 65 78 7b 5c 62 67 | 72 6f 75 70 2c 5c 62 6f |ndex{\bg|roup,\bo|
|000007a0| 78 2c 5c 63 68 61 70 74 | 65 72 2c 5c 63 6f 6c 75 |x,\chapt|er,\colu|
|000007b0| 6d 6e 77 69 64 74 68 2c | 5c 63 73 6e 61 6d 65 2c |mnwidth,|\csname,|
|000007c0| 5c 64 65 66 2c 5c 64 69 | 6d 65 6e 2c 5c 64 6f 63 |\def,\di|men,\doc|
|000007d0| 64 61 74 65 7d 0a 25 20 | 5c 44 6f 4e 6f 74 49 6e |date}.% |\DoNotIn|
|000007e0| 64 65 78 7b 5c 65 64 65 | 66 2c 5c 65 67 72 6f 75 |dex{\ede|f,\egrou|
|000007f0| 70 2c 5c 65 6c 73 65 2c | 5c 65 6e 64 63 73 6e 61 |p,\else,|\endcsna|
|00000800| 6d 65 2c 5c 65 6e 64 69 | 6e 70 75 74 2c 5c 65 78 |me,\endi|nput,\ex|
|00000810| 70 61 6e 64 61 66 74 65 | 72 2c 5c 66 69 7d 0a 25 |pandafte|r,\fi}.%|
|00000820| 20 5c 44 6f 4e 6f 74 49 | 6e 64 65 78 7b 5c 66 69 | \DoNotI|ndex{\fi|
|00000830| 6c 65 64 61 74 65 2c 5c | 66 69 6c 65 76 65 72 73 |ledate,\|filevers|
|00000840| 69 6f 6e 2c 5c 67 6c 6f | 62 61 6c 2c 5c 68 62 61 |ion,\glo|bal,\hba|
|00000850| 64 6e 65 73 73 2c 5c 68 | 62 6f 78 2c 5c 68 66 69 |dness,\h|box,\hfi|
|00000860| 6c 2c 5c 68 72 75 6c 65 | 7d 0a 25 20 5c 44 6f 4e |l,\hrule|}.% \DoN|
|00000870| 6f 74 49 6e 64 65 78 7b | 5c 68 73 69 7a 65 2c 5c |otIndex{|\hsize,\|
|00000880| 68 74 2c 5c 69 66 40 74 | 77 6f 63 6f 6c 75 6d 6e |ht,\if@t|wocolumn|
|00000890| 2c 5c 69 66 64 69 6d 2c | 5c 69 66 66 61 6c 73 65 |,\ifdim,|\iffalse|
|000008a0| 2c 5c 69 66 6e 75 6d 2c | 5c 69 66 74 72 75 65 2c |,\ifnum,|\iftrue,|
|000008b0| 5c 69 66 76 62 6f 78 7d | 0a 25 20 5c 44 6f 4e 6f |\ifvbox}|.% \DoNo|
|000008c0| 74 49 6e 64 65 78 7b 5c | 69 66 78 2c 5c 69 67 6e |tIndex{\|ifx,\ign|
|000008d0| 6f 72 65 73 70 61 63 65 | 73 2c 5c 69 6e 74 65 78 |orespace|s,\intex|
|000008e0| 74 73 65 70 2c 5c 6b 65 | 72 6e 2c 5c 6c 65 74 2c |tsep,\ke|rn,\let,|
|000008f0| 5c 6c 6f 6e 67 2c 5c 6d | 6f 76 65 6c 65 66 74 2c |\long,\m|oveleft,|
|00000900| 5c 6e 65 77 62 6f 78 7d | 0a 25 20 5c 44 6f 4e 6f |\newbox}|.% \DoNo|
|00000910| 74 49 6e 64 65 78 7b 5c | 6e 65 77 63 6f 6d 6d 61 |tIndex{\|newcomma|
|00000920| 6e 64 2c 5c 6e 65 77 63 | 6f 75 6e 74 65 72 2c 5c |nd,\newc|ounter,\|
|00000930| 6e 65 77 69 66 2c 5c 6e | 65 77 73 61 76 65 62 6f |newif,\n|ewsavebo|
|00000940| 78 2c 5c 6e 6f 65 78 70 | 61 6e 64 2c 5c 6e 6f 72 |x,\noexp|and,\nor|
|00000950| 6d 61 6c 73 69 7a 65 7d | 0a 25 20 5c 44 6f 4e 6f |malsize}|.% \DoNo|
|00000960| 74 49 6e 64 65 78 7b 5c | 6e 75 6d 62 65 72 6c 69 |tIndex{\|numberli|
|00000970| 6e 65 2c 5c 50 61 63 6b | 61 67 65 45 72 72 6f 72 |ne,\Pack|ageError|
|00000980| 2c 5c 50 61 63 6b 61 67 | 65 57 61 72 6e 69 6e 67 |,\Packag|eWarning|
|00000990| 2c 5c 70 61 72 2c 5c 70 | 61 72 69 6e 64 65 6e 74 |,\par,\p|arindent|
|000009a0| 7d 0a 25 20 5c 44 6f 4e | 6f 74 49 6e 64 65 78 7b |}.% \DoN|otIndex{|
|000009b0| 5c 70 65 6e 61 6c 74 79 | 2c 5c 70 72 65 76 64 65 |\penalty|,\prevde|
|000009c0| 70 74 68 2c 5c 70 72 6f | 74 65 63 74 2c 5c 72 65 |pth,\pro|tect,\re|
|000009d0| 66 73 74 65 70 63 6f 75 | 6e 74 65 72 2c 5c 72 65 |fstepcou|nter,\re|
|000009e0| 6c 61 78 7d 0a 25 20 5c | 44 6f 4e 6f 74 49 6e 64 |lax}.% \|DoNotInd|
|000009f0| 65 78 7b 5c 72 65 6e 65 | 77 63 6f 6d 6d 61 6e 64 |ex{\rene|wcommand|
|00000a00| 2c 5c 72 6d 66 61 6d 69 | 6c 79 2c 5c 73 65 63 74 |,\rmfami|ly,\sect|
|00000a10| 69 6f 6e 2c 5c 73 65 74 | 62 6f 78 2c 5c 73 65 74 |ion,\set|box,\set|
|00000a20| 63 6f 75 6e 74 65 72 2c | 5c 73 70 61 63 65 7d 0a |counter,|\space}.|
|00000a30| 25 20 5c 44 6f 4e 6f 74 | 49 6e 64 65 78 7b 5c 74 |% \DoNot|Index{\t|
|00000a40| 65 78 74 68 65 69 67 68 | 74 2c 5c 74 68 65 2c 5c |extheigh|t,\the,\|
|00000a50| 74 79 70 65 6f 75 74 2c | 5c 75 6e 76 62 6f 78 2c |typeout,|\unvbox,|
|00000a60| 5c 75 70 70 65 72 63 61 | 73 65 2c 5c 76 61 64 6a |\upperca|se,\vadj|
|00000a70| 75 73 74 2c 5c 76 61 6c | 75 65 7d 0a 25 20 5c 44 |ust,\val|ue}.% \D|
|00000a80| 6f 4e 6f 74 49 6e 64 65 | 78 7b 5c 76 62 6f 78 2c |oNotInde|x{\vbox,|
|00000a90| 5c 76 72 75 6c 65 2c 5c | 76 73 6b 69 70 2c 5c 76 |\vrule,\|vskip,\v|
|00000aa0| 73 70 61 63 65 2c 5c 77 | 64 2c 5c 7a 40 7d 0a 25 |space,\w|d,\z@}.%|
|00000ab0| 0a 25 20 5c 62 65 67 69 | 6e 7b 61 62 73 74 72 61 |.% \begi|n{abstra|
|00000ac0| 63 74 7d 0a 25 20 20 20 | 54 68 69 73 20 73 74 79 |ct}.% |This sty|
|00000ad0| 6c 65 20 6f 70 74 69 6f | 6e 20 69 6d 70 72 6f 76 |le optio|n improv|
|00000ae0| 65 73 20 74 68 65 20 69 | 6e 74 65 72 66 61 63 65 |es the i|nterface|
|00000af0| 20 66 6f 72 20 64 65 66 | 69 6e 69 6e 67 20 66 6c | for def|ining fl|
|00000b00| 6f 61 74 69 6e 67 0a 25 | 20 20 20 6f 62 6a 65 63 |oating.%| objec|
|00000b10| 74 73 20 73 75 63 68 20 | 61 73 20 66 69 67 75 72 |ts such |as figur|
|00000b20| 65 73 20 61 6e 64 20 74 | 61 62 6c 65 73 20 69 6e |es and t|ables in|
|00000b30| 20 5c 4c 61 54 65 58 7b | 7d 2e 0a 25 20 20 20 49 | \LaTeX{|}..% I|
|00000b40| 74 20 61 64 64 73 20 74 | 68 65 20 6e 6f 74 69 6f |t adds t|he notio|
|00000b50| 6e 20 6f 66 20 61 20 60 | 66 6c 6f 61 74 20 73 74 |n of a `|float st|
|00000b60| 79 6c 65 27 20 74 68 61 | 74 20 67 6f 76 65 72 6e |yle' tha|t govern|
|00000b70| 73 20 61 70 70 65 61 72 | 61 6e 63 65 0a 25 20 20 |s appear|ance.% |
|00000b80| 20 6f 66 20 66 6c 6f 61 | 74 73 2e 0a 25 20 20 20 | of floa|ts..% |
|00000b90| 4e 65 77 20 6b 69 6e 64 | 73 20 6f 66 20 66 6c 6f |New kind|s of flo|
|00000ba0| 61 74 73 20 6d 61 79 20 | 62 65 20 64 65 66 69 6e |ats may |be defin|
|00000bb0| 65 64 20 75 73 69 6e 67 | 20 61 20 7c 5c 6e 65 77 |ed using| a |\new|
|00000bc0| 66 6c 6f 61 74 7c 20 63 | 6f 6d 6d 61 6e 64 0a 25 |float| c|ommand.%|
|00000bd0| 20 20 20 61 6e 61 6c 6f | 67 6f 75 73 20 74 6f 20 | analo|gous to |
|00000be0| 7c 5c 6e 65 77 74 68 65 | 6f 72 65 6d 7c 2e 0a 25 ||\newthe|orem|..%|
|00000bf0| 20 20 20 54 68 69 73 20 | 73 74 79 6c 65 20 6f 70 | This |style op|
|00000c00| 74 69 6f 6e 20 61 6c 73 | 6f 20 69 6e 63 6f 72 70 |tion als|o incorp|
|00000c10| 6f 72 61 74 65 73 20 74 | 68 65 20 66 75 6e 63 74 |orates t|he funct|
|00000c20| 69 6f 6e 61 6c 69 74 79 | 0a 25 20 20 20 6f 66 20 |ionality|.% of |
|00000c30| 44 61 76 69 64 20 43 61 | 72 6c 69 73 6c 65 27 73 |David Ca|rlisle's|
|00000c40| 20 73 74 79 6c 65 20 6f | 70 74 69 6f 6e 20 5c 74 | style o|ption \t|
|00000c50| 65 78 74 73 66 7b 68 65 | 72 65 7d 2c 0a 25 20 20 |extsf{he|re},.% |
|00000c60| 20 67 69 76 69 6e 67 20 | 66 6c 6f 61 74 69 6e 67 | giving |floating|
|00000c70| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 73 20 61 20 | environ|ments a |
|00000c80| 5c 74 65 78 74 74 74 7b | 5b 48 5d 7d 20 6f 70 74 |\texttt{|[H]} opt|
|00000c90| 69 6f 6e 0a 25 20 20 20 | 77 68 69 63 68 20 6d 65 |ion.% |which me|
|00000ca0| 61 6e 73 20 60 50 55 54 | 20 49 54 20 48 45 52 45 |ans `PUT| IT HERE|
|00000cb0| 27 0a 25 20 20 20 28 61 | 73 20 6f 70 70 6f 73 65 |'.% (a|s oppose|
|00000cc0| 64 20 74 6f 20 74 68 65 | 20 73 74 61 6e 64 61 72 |d to the| standar|
|00000cd0| 64 20 5c 74 65 78 74 74 | 74 7b 5b 68 5d 7d 20 6f |d \textt|t{[h]} o|
|00000ce0| 70 74 69 6f 6e 20 77 68 | 69 63 68 20 6d 65 61 6e |ption wh|ich mean|
|00000cf0| 73 0a 25 20 20 20 60 59 | 6f 75 20 6d 61 79 20 70 |s.% `Y|ou may p|
|00000d00| 75 74 20 69 74 20 68 65 | 72 65 20 69 66 20 79 6f |ut it he|re if yo|
|00000d10| 75 20 6c 69 6b 65 27 29 | 2e 0a 25 20 5c 65 6e 64 |u like')|..% \end|
|00000d20| 7b 61 62 73 74 72 61 63 | 74 7d 0a 25 0a 25 20 5c |{abstrac|t}.%.% \|
|00000d30| 73 65 63 74 69 6f 6e 7b | 49 6e 74 72 6f 64 75 63 |section{|Introduc|
|00000d40| 74 69 6f 6e 7d 0a 25 0a | 25 20 41 6d 6f 6e 67 20 |tion}.%.|% Among |
|00000d50| 74 68 65 20 66 65 61 74 | 75 72 65 73 20 6f 66 20 |the feat|ures of |
|00000d60| 5c 4c 61 54 65 58 5c 20 | 61 72 65 20 60 66 6c 6f |\LaTeX\ |are `flo|
|00000d70| 61 74 69 6e 67 27 20 66 | 69 67 75 72 65 73 20 61 |ating' f|igures a|
|00000d80| 6e 64 20 74 61 62 6c 65 | 73 0a 25 20 74 68 61 74 |nd table|s.% that|
|00000d90| 20 64 72 69 66 74 20 66 | 72 6f 6d 20 77 68 65 72 | drift f|rom wher|
|00000da0| 65 20 74 68 65 79 20 61 | 70 70 65 61 72 20 69 6e |e they a|ppear in|
|00000db0| 20 74 68 65 20 69 6e 70 | 75 74 20 74 65 78 74 20 | the inp|ut text |
|00000dc0| 74 6f 2c 20 73 61 79 2c | 20 74 68 65 20 74 6f 70 |to, say,| the top|
|00000dd0| 0a 25 20 6f 66 20 61 20 | 70 61 67 65 2e 20 54 68 |.% of a |page. Th|
|00000de0| 65 20 63 6f 6e 74 65 6e | 74 73 20 61 6e 64 20 66 |e conten|ts and f|
|00000df0| 6f 72 6d 61 74 74 69 6e | 67 20 6f 66 20 66 6c 6f |ormattin|g of flo|
|00000e00| 61 74 73 20 69 73 20 70 | 72 65 74 74 79 20 6d 75 |ats is p|retty mu|
|00000e10| 63 68 20 75 70 0a 25 20 | 74 6f 20 74 68 65 20 75 |ch up.% |to the u|
|00000e20| 73 65 72 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |ser, exc|ept that|
|00000e30| 20 74 68 65 72 65 20 69 | 73 20 61 20 7c 5c 63 61 | there i|s a |\ca|
|00000e40| 70 74 69 6f 6e 7c 20 63 | 6f 6d 6d 61 6e 64 20 74 |ption| c|ommand t|
|00000e50| 68 61 74 0a 25 20 67 6f | 76 65 72 6e 73 20 66 6f |hat.% go|verns fo|
|00000e60| 72 6d 61 74 74 69 6e 67 | 20 6f 66 20 74 68 65 20 |rmatting| of the |
|00000e70| 63 61 70 74 69 6f 6e 20 | 2d 2d 2d 20 69 74 20 69 |caption |--- it i|
|00000e80| 73 20 63 65 6e 74 65 72 | 65 64 20 69 66 20 69 74 |s center|ed if it|
|00000e90| 20 69 73 20 73 68 6f 72 | 74 2c 0a 25 20 61 6e 64 | is shor|t,.% and|
|00000ea0| 20 66 6f 72 6d 61 74 74 | 65 64 20 61 73 20 61 20 | formatt|ed as a |
|00000eb0| 70 61 72 61 67 72 61 70 | 68 20 69 66 20 69 74 20 |paragrap|h if it |
|00000ec0| 69 73 20 6c 6f 6e 67 65 | 72 20 74 68 61 6e 20 61 |is longe|r than a|
|00000ed0| 20 73 69 6e 67 6c 65 20 | 6c 69 6e 65 20 6f 66 20 | single |line of |
|00000ee0| 74 65 78 74 2e 0a 25 20 | 53 6f 6d 65 74 69 6d 65 |text..% |Sometime|
|00000ef0| 73 20 6f 74 68 65 72 20 | 74 79 70 65 73 20 6f 66 |s other |types of|
|00000f00| 20 66 6c 6f 61 74 69 6e | 67 20 6f 62 6a 65 63 74 | floatin|g object|
|00000f10| 73 2c 20 65 2e 67 2e 2c | 20 61 6c 67 6f 72 69 74 |s, e.g.,| algorit|
|00000f20| 68 6d 73 20 6f 72 20 70 | 72 6f 67 72 61 6d 73 2c |hms or p|rograms,|
|00000f30| 0a 25 20 61 72 65 20 64 | 65 73 69 72 61 62 6c 65 |.% are d|esirable|
|00000f40| 2c 20 62 75 74 20 74 68 | 65 79 20 6d 75 73 74 20 |, but th|ey must |
|00000f50| 62 65 20 64 65 66 69 6e | 65 64 20 62 79 20 61 6e |be defin|ed by an|
|00000f60| 61 6c 6f 67 79 20 74 6f | 20 74 68 65 20 65 78 69 |alogy to| the exi|
|00000f70| 73 74 69 6e 67 0a 25 20 | 66 6c 6f 61 74 73 20 73 |sting.% |floats s|
|00000f80| 69 6e 63 65 20 74 68 65 | 72 65 20 69 73 20 6e 6f |ince the|re is no|
|00000f90| 20 73 69 6d 70 6c 65 20 | 63 6f 6d 6d 61 6e 64 20 | simple |command |
|00000fa0| 66 6f 72 20 64 6f 69 6e | 67 20 74 68 69 73 2e 20 |for doin|g this. |
|00000fb0| 54 68 69 73 20 67 6f 65 | 73 0a 25 20 62 65 79 6f |This goe|s.% beyo|
|00000fc0| 6e 64 20 74 68 65 20 6b | 6e 6f 77 6c 65 64 67 65 |nd the k|nowledge|
|00000fd0| 20 6f 72 20 69 6e 63 6c | 69 6e 61 74 69 6f 6e 20 | or incl|ination |
|00000fe0| 6f 66 20 74 68 65 20 61 | 76 65 72 61 67 65 20 5c |of the a|verage \|
|00000ff0| 4c 61 54 65 58 5c 20 75 | 73 65 72 2e 0a 25 0a 25 |LaTeX\ u|ser..%.%|
|00001000| 20 49 6e 20 74 68 69 73 | 20 73 74 79 6c 65 20 6f | In this| style o|
|00001010| 70 74 69 6f 6e 2c 20 49 | 20 70 72 65 73 65 6e 74 |ption, I| present|
|00001020| 20 61 6e 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f | an inte|rface to|
|00001030| 20 66 6c 6f 61 74 69 6e | 67 20 6f 62 6a 65 63 74 | floatin|g object|
|00001040| 73 0a 25 20 74 68 61 74 | 20 61 74 74 65 6d 70 74 |s.% that| attempt|
|00001050| 73 20 74 6f 20 66 69 78 | 20 73 6f 6d 65 20 6f 66 |s to fix| some of|
|00001060| 20 74 68 65 73 65 20 73 | 68 6f 72 74 63 6f 6d 69 | these s|hortcomi|
|00001070| 6e 67 73 2e 0a 25 20 46 | 69 72 73 74 20 6f 66 20 |ngs..% F|irst of |
|00001080| 61 6c 6c 2c 20 49 20 69 | 6e 74 72 6f 64 75 63 65 |all, I i|ntroduce|
|00001090| 20 74 68 65 20 6e 6f 74 | 69 6f 6e 20 6f 66 20 61 | the not|ion of a|
|000010a0| 20 60 66 6c 6f 61 74 20 | 73 74 79 6c 65 27 2e 0a | `float |style'..|
|000010b0| 25 20 41 20 66 6c 6f 61 | 74 20 73 74 79 6c 65 20 |% A floa|t style |
|000010c0| 67 6f 76 65 72 6e 73 20 | 74 68 65 20 61 70 70 65 |governs |the appe|
|000010d0| 61 72 61 6e 63 65 20 6f | 66 20 61 20 63 6c 61 73 |arance o|f a clas|
|000010e0| 73 20 6f 66 20 66 6c 6f | 61 74 73 20 6c 69 6b 65 |s of flo|ats like|
|000010f0| 20 61 20 70 61 67 65 20 | 73 74 79 6c 65 0a 25 20 | a page |style.% |
|00001100| 67 6f 76 65 72 6e 73 20 | 74 68 65 20 61 70 70 65 |governs |the appe|
|00001110| 61 72 61 6e 63 65 20 6f | 66 20 61 20 70 61 67 65 |arance o|f a page|
|00001120| 20 28 5c 4c 61 54 65 58 | 5c 20 68 61 73 20 70 61 | (\LaTeX|\ has pa|
|00001130| 67 65 20 73 74 79 6c 65 | 73 20 5c 74 65 78 74 74 |ge style|s \textt|
|00001140| 74 7b 70 6c 61 69 6e 7d | 2c 0a 25 20 5c 74 65 78 |t{plain}|,.% \tex|
|00001150| 74 74 74 7b 65 6d 70 74 | 79 7d 20 61 6e 64 20 5c |ttt{empt|y} and \|
|00001160| 74 65 78 74 74 74 7b 68 | 65 61 64 69 6e 67 73 7d |texttt{h|eadings}|
|00001170| 2c 20 61 6d 6f 6e 67 20 | 6f 74 68 65 72 73 29 2e |, among |others).|
|00001180| 20 54 68 69 73 20 73 74 | 79 6c 65 20 6f 70 74 69 | This st|yle opti|
|00001190| 6f 6e 0a 25 20 70 72 6f | 76 69 64 65 73 20 73 6f |on.% pro|vides so|
|000011a0| 6d 65 20 65 78 65 6d 70 | 6c 61 72 79 20 66 6c 6f |me exemp|lary flo|
|000011b0| 61 74 20 73 74 79 6c 65 | 73 3a 0a 25 20 5c 62 65 |at style|s:.% \be|
|000011c0| 67 69 6e 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |gin{desc|ription}|
|000011d0| 0a 25 20 5c 69 74 65 6d | 5b 70 6c 61 69 6e 5d 20 |.% \item|[plain] |
|000011e0| 54 68 69 73 20 69 73 20 | 74 68 65 20 66 6c 6f 61 |This is |the floa|
|000011f0| 74 20 73 74 79 6c 65 20 | 74 68 61 74 20 5c 4c 61 |t style |that \La|
|00001200| 54 65 58 5c 20 6e 6f 72 | 6d 61 6c 6c 79 20 61 70 |TeX\ nor|mally ap|
|00001210| 70 6c 69 65 73 20 74 6f | 0a 25 20 20 20 69 74 73 |plies to|.% its|
|00001220| 20 66 6c 6f 61 74 73 2c | 20 69 2e 65 2e 2c 20 6e | floats,| i.e., n|
|00001230| 6f 74 68 69 6e 67 20 69 | 6e 20 70 61 72 74 69 63 |othing i|n partic|
|00001240| 75 6c 61 72 2e 20 54 68 | 65 20 6f 6e 6c 79 20 64 |ular. Th|e only d|
|00001250| 69 66 66 65 72 65 6e 63 | 65 20 69 73 0a 25 20 20 |ifferenc|e is.% |
|00001260| 20 74 68 61 74 20 74 68 | 65 20 63 61 70 74 69 6f | that th|e captio|
|00001270| 6e 20 63 6f 6d 65 73 20 | 6f 75 74 20 5c 65 6d 70 |n comes |out \emp|
|00001280| 68 7b 62 65 6c 6f 77 7d | 20 74 68 65 20 62 6f 64 |h{below}| the bod|
|00001290| 79 20 6f 66 20 74 68 65 | 20 66 6c 6f 61 74 2c 0a |y of the| float,.|
|000012a0| 25 20 20 20 72 65 67 61 | 72 64 6c 65 73 73 20 6f |% rega|rdless o|
|000012b0| 66 20 77 68 65 72 65 20 | 69 74 20 69 73 20 67 69 |f where |it is gi|
|000012c0| 76 65 6e 20 69 6e 20 74 | 68 65 20 74 65 78 74 2e |ven in t|he text.|
|000012d0| 0a 25 20 5c 69 74 65 6d | 5b 62 6f 78 65 64 5d 20 |.% \item|[boxed] |
|000012e0| 54 68 65 20 62 6f 64 79 | 20 6f 66 20 74 68 65 20 |The body| of the |
|000012f0| 66 6c 6f 61 74 20 69 73 | 20 70 72 69 6e 74 65 64 |float is| printed|
|00001300| 20 69 6e 73 69 64 65 20 | 61 20 62 6f 78 2e 20 54 | inside |a box. T|
|00001310| 68 65 20 63 61 70 74 69 | 6f 6e 0a 25 20 20 20 67 |he capti|on.% g|
|00001320| 6f 65 73 20 62 65 6c 6f | 77 20 74 68 61 74 20 62 |oes belo|w that b|
|00001330| 6f 78 2e 0a 25 20 5c 69 | 74 65 6d 5b 72 75 6c 65 |ox..% \i|tem[rule|
|00001340| 64 5d 20 54 68 69 73 20 | 66 6c 6f 61 74 20 73 74 |d] This |float st|
|00001350| 79 6c 65 20 69 73 20 70 | 61 74 74 65 72 6e 65 64 |yle is p|atterned|
|00001360| 20 6f 6e 20 74 68 65 20 | 74 61 62 6c 65 20 73 74 | on the |table st|
|00001370| 79 6c 65 20 6f 66 0a 25 | 20 20 20 7b 5c 73 6c 20 |yle of.%| {\sl |
|00001380| 43 6f 6e 63 72 65 74 65 | 20 4d 61 74 68 65 6d 61 |Concrete| Mathema|
|00001390| 74 69 63 73 7d 2e 20 54 | 68 65 20 63 61 70 74 69 |tics}. T|he capti|
|000013a0| 6f 6e 20 69 73 20 70 72 | 69 6e 74 65 64 20 61 74 |on is pr|inted at|
|000013b0| 20 74 68 65 20 74 6f 70 | 20 6f 66 20 74 68 65 0a | the top| of the.|
|000013c0| 25 20 20 20 66 6c 6f 61 | 74 2c 20 73 75 72 72 6f |% floa|t, surro|
|000013d0| 75 6e 64 65 64 20 62 79 | 20 72 75 6c 65 73 3b 20 |unded by| rules; |
|000013e0| 61 6e 6f 74 68 65 72 20 | 72 75 6c 65 20 66 69 6e |another |rule fin|
|000013f0| 69 73 68 65 73 20 6f 66 | 66 20 74 68 65 20 66 6c |ishes of|f the fl|
|00001400| 6f 61 74 2e 0a 25 20 5c | 65 6e 64 7b 64 65 73 63 |oat..% \|end{desc|
|00001410| 72 69 70 74 69 6f 6e 7d | 0a 25 0a 25 20 5c 62 65 |ription}|.%.% \be|
|00001420| 67 69 6e 7b 50 72 6f 67 | 72 61 6d 7d 0a 25 20 5c |gin{Prog|ram}.% \|
|00001430| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00001440| 25 20 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |% #inclu|de <stdi|
|00001450| 6f 2e 68 3e 0a 25 0a 25 | 20 69 6e 74 20 6d 61 69 |o.h>.%.%| int mai|
|00001460| 6e 28 69 6e 74 20 61 72 | 67 63 2c 20 63 68 61 72 |n(int ar|gc, char|
|00001470| 20 2a 2a 61 72 67 76 29 | 0a 25 20 7b 0a 25 20 20 | **argv)|.% {.% |
|00001480| 20 20 20 20 20 20 69 6e | 74 20 69 3b 0a 25 20 20 | in|t i;.% |
|00001490| 20 20 20 20 20 20 66 6f | 72 20 28 69 20 3d 20 30 | fo|r (i = 0|
|000014a0| 3b 20 69 20 3c 20 61 72 | 67 63 3b 20 2b 2b 69 29 |; i < ar|gc; ++i)|
|000014b0| 0a 25 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.% | |
|000014c0| 20 20 70 72 69 6e 74 66 | 28 22 61 72 67 76 5b 25 | printf|("argv[%|
|000014d0| 64 5d 20 3d 20 25 73 5c | 6e 22 2c 20 69 2c 20 61 |d] = %s\|n", i, a|
|000014e0| 72 67 76 5b 69 5d 29 3b | 0a 25 20 20 20 20 20 20 |rgv[i]);|.% |
|000014f0| 20 20 72 65 74 75 72 6e | 20 30 3b 0a 25 20 7d 0a | return| 0;.% }.|
|00001500| 25 20 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |% \end{v|erbatim}|
|00001510| 0a 25 20 5c 63 61 70 74 | 69 6f 6e 7b 54 68 65 20 |.% \capt|ion{The |
|00001520| 66 69 72 73 74 20 70 72 | 6f 67 72 61 6d 2e 20 54 |first pr|ogram. T|
|00001530| 68 69 73 20 68 61 73 6e | 27 74 20 67 6f 74 20 61 |his hasn|'t got a|
|00001540| 6e 79 74 68 69 6e 67 20 | 74 6f 20 64 6f 20 77 69 |nything |to do wi|
|00001550| 74 68 20 74 68 65 20 73 | 74 79 6c 65 0a 25 20 20 |th the s|tyle.% |
|00001560| 20 20 62 75 74 20 69 73 | 20 69 6e 63 6c 75 64 65 | but is| include|
|00001570| 64 20 61 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 2e |d as an |example.|
|00001580| 20 4e 6f 74 65 20 74 68 | 65 20 5c 74 65 78 74 74 | Note th|e \textt|
|00001590| 74 7b 72 75 6c 65 64 7d | 20 66 6c 6f 61 74 20 73 |t{ruled}| float s|
|000015a0| 74 79 6c 65 2e 25 0a 25 | 20 20 20 20 5c 6c 61 62 |tyle.%.%| \lab|
|000015b0| 65 6c 7b 70 72 6f 67 31 | 2e 31 7d 7d 0a 25 20 5c |el{prog1|.1}}.% \|
|000015c0| 65 6e 64 7b 50 72 6f 67 | 72 61 6d 7d 0a 25 20 54 |end{Prog|ram}.% T|
|000015d0| 6f 20 66 61 63 69 6c 69 | 74 61 74 65 20 74 68 65 |o facili|tate the|
|000015e0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 6f 66 20 6e | definit|ion of n|
|000015f0| 65 77 20 66 6c 6f 61 74 | 69 6e 67 20 6f 62 6a 65 |ew float|ing obje|
|00001600| 63 74 73 2c 20 5c 74 65 | 78 74 73 66 7b 66 6c 6f |cts, \te|xtsf{flo|
|00001610| 61 74 7d 0a 25 20 73 75 | 70 70 6f 72 74 73 20 74 |at}.% su|pports t|
|00001620| 68 65 20 7c 5c 6e 65 77 | 66 6c 6f 61 74 7c 20 63 |he |\new|float| c|
|00001630| 6f 6d 6d 61 6e 64 2e 20 | 54 68 69 73 20 63 6f 6d |ommand. |This com|
|00001640| 6d 61 6e 64 20 69 73 20 | 63 6f 6d 70 61 72 61 62 |mand is |comparab|
|00001650| 6c 65 20 74 6f 0a 25 20 | 7c 5c 6e 65 77 74 68 65 |le to.% ||\newthe|
|00001660| 6f 72 65 6d 7c 20 69 6e | 20 74 68 61 74 20 69 74 |orem| in| that it|
|00001670| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 75 73 65 72 | allows |the user|
|00001680| 20 74 6f 20 61 64 64 20 | 61 20 6e 65 77 20 63 6c | to add |a new cl|
|00001690| 61 73 73 20 6f 66 20 66 | 6c 6f 61 74 73 0a 25 20 |ass of f|loats.% |
|000016a0| 61 74 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |at the d|ocument |
|000016b0| 6c 65 76 65 6c 2e 20 4e | 6f 20 73 74 79 6c 65 20 |level. N|o style |
|000016c0| 6f 70 74 69 6f 6e 20 68 | 61 63 6b 69 6e 67 20 69 |option h|acking i|
|000016d0| 73 20 6e 65 63 65 73 73 | 61 72 79 2e 0a 25 20 54 |s necess|ary..% T|
|000016e0| 68 65 72 65 27 73 20 61 | 6c 73 6f 20 61 20 7c 5c |here's a|lso a |\|
|000016f0| 6c 69 73 74 6f 66 7c 20 | 63 6f 6d 6d 61 6e 64 20 |listof| |command |
|00001700| 74 68 61 74 20 70 72 69 | 6e 74 73 20 61 20 6c 69 |that pri|nts a li|
|00001710| 73 74 69 6e 67 20 6f 66 | 20 61 6c 6c 20 74 68 65 |sting of| all the|
|00001720| 0a 25 20 66 6c 6f 61 74 | 73 20 6f 66 20 61 20 67 |.% float|s of a g|
|00001730| 69 76 65 6e 20 74 79 70 | 65 2c 20 6c 69 6b 65 20 |iven typ|e, like |
|00001740| 7c 5c 6c 69 73 74 6f 66 | 66 69 67 75 72 65 73 7c ||\listof|figures||
|00001750| 20 61 6e 64 20 7c 5c 6c | 69 73 74 6f 66 74 61 62 | and |\l|istoftab|
|00001760| 6c 65 73 7c 0a 25 20 69 | 6e 20 76 61 6e 69 6c 6c |les|.% i|n vanill|
|00001770| 61 20 5c 4c 61 54 65 58 | 2e 0a 25 0a 25 20 5c 73 |a \LaTeX|..%.% \s|
|00001780| 65 63 74 69 6f 6e 7b 54 | 68 65 20 55 73 65 72 20 |ection{T|he User |
|00001790| 49 6e 74 65 72 66 61 63 | 65 20 2d 2d 2d 20 4e 65 |Interfac|e --- Ne|
|000017a0| 77 20 46 6c 6f 61 74 73 | 7d 0a 25 0a 25 20 5c 44 |w Floats|}.%.% \D|
|000017b0| 65 73 63 72 69 62 65 4d | 61 63 72 6f 7b 5c 6e 65 |escribeM|acro{\ne|
|000017c0| 77 66 6c 6f 61 74 7d 0a | 25 20 54 68 65 20 6d 6f |wfloat}.|% The mo|
|000017d0| 73 74 20 69 6d 70 6f 72 | 74 61 6e 74 20 63 6f 6d |st impor|tant com|
|000017e0| 6d 61 6e 64 20 69 6e 20 | 5c 74 65 78 74 73 66 7b |mand in |\textsf{|
|000017f0| 66 6c 6f 61 74 7d 20 69 | 73 20 74 68 65 20 7c 5c |float} i|s the |\|
|00001800| 6e 65 77 66 6c 6f 61 74 | 7c 0a 25 20 63 6f 6d 6d |newfloat||.% comm|
|00001810| 61 6e 64 2e 20 41 73 20 | 6d 65 6e 74 69 6f 6e 65 |and. As |mentione|
|00001820| 64 20 61 62 6f 76 65 2c | 20 69 74 20 69 73 20 70 |d above,| it is p|
|00001830| 61 74 74 65 72 6e 65 64 | 20 6f 6e 20 7c 5c 6e 65 |atterned| on |\ne|
|00001840| 77 74 68 65 6f 72 65 6d | 7c 2e 0a 25 20 54 68 65 |wtheorem||..% The|
|00001850| 20 7c 5c 6e 65 77 66 6c | 6f 61 74 7c 20 63 6f 6d | |\newfl|oat| com|
|00001860| 6d 61 6e 64 20 74 61 6b | 65 73 20 74 68 72 65 65 |mand tak|es three|
|00001870| 20 72 65 71 75 69 72 65 | 64 20 61 6e 64 20 6f 6e | require|d and on|
|00001880| 65 20 6f 70 74 69 6f 6e | 61 6c 0a 25 20 61 72 67 |e option|al.% arg|
|00001890| 75 6d 65 6e 74 3b 20 69 | 74 20 69 73 20 6f 66 20 |ument; i|t is of |
|000018a0| 74 68 65 20 66 6f 72 6d | 5c 5c 5b 32 70 74 5d 0a |the form|\\[2pt].|
|000018b0| 25 20 5c 68 73 70 61 63 | 65 2a 7b 5c 4d 61 63 72 |% \hspac|e*{\Macr|
|000018c0| 6f 49 6e 64 65 6e 74 7d | 7c 5c 6e 65 77 66 6c 6f |oIndent}||\newflo|
|000018d0| 61 74 7b 7c 5c 6d 65 74 | 61 7b 74 79 70 65 7d 7c |at{|\met|a{type}||
|000018e0| 7d 7b 7c 5e 5e 41 0a 25 | 20 20 20 5c 6d 65 74 61 |}{|^^A.%| \meta|
|000018f0| 7b 70 6c 61 63 65 6d 65 | 6e 74 7d 7c 7d 7b 7c 5c |{placeme|nt}|}{|\|
|00001900| 6d 65 74 61 7b 65 78 74 | 7d 7c 7d 5b 7c 5c 6d 65 |meta{ext|}|}[|\me|
|00001910| 74 61 7b 77 69 74 68 69 | 6e 7d 7b 5c 74 74 5d 7d |ta{withi|n}{\tt]}|
|00001920| 5c 5c 5b 32 70 74 5d 0a | 25 20 5c 6d 65 74 61 7b |\\[2pt].|% \meta{|
|00001930| 74 79 70 65 7d 20 69 73 | 20 74 68 65 20 60 74 79 |type} is| the `ty|
|00001940| 70 65 27 20 6f 66 20 74 | 68 65 20 6e 65 77 20 63 |pe' of t|he new c|
|00001950| 6c 61 73 73 20 6f 66 20 | 66 6c 6f 61 74 73 2c 20 |lass of |floats, |
|00001960| 6c 69 6b 65 20 5c 74 65 | 78 74 74 74 7b 70 72 6f |like \te|xttt{pro|
|00001970| 67 72 61 6d 7d 0a 25 20 | 6f 72 20 5c 74 65 78 74 |gram}.% |or \text|
|00001980| 74 74 7b 61 6c 67 6f 72 | 69 74 68 6d 7d 2e 20 41 |tt{algor|ithm}. A|
|00001990| 66 74 65 72 20 74 68 65 | 20 61 70 70 72 6f 70 72 |fter the| appropr|
|000019a0| 69 61 74 65 20 7c 5c 6e | 65 77 66 6c 6f 61 74 7c |iate |\n|ewfloat||
|000019b0| 2c 20 63 6f 6d 6d 61 6e | 64 73 0a 25 20 6c 69 6b |, comman|ds.% lik|
|000019c0| 65 20 7c 5c 62 65 67 69 | 6e 7b 70 72 6f 67 72 61 |e |\begi|n{progra|
|000019d0| 6d 7d 7c 20 6f 72 20 7c | 5c 65 6e 64 7b 61 6c 67 |m}| or ||\end{alg|
|000019e0| 6f 72 69 74 68 6d 2a 7d | 7c 20 77 69 6c 6c 20 62 |orithm*}|| will b|
|000019f0| 65 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 25 20 5c |e availa|ble..% \|
|00001a00| 6d 65 74 61 7b 70 6c 61 | 63 65 6d 65 6e 74 7d 20 |meta{pla|cement} |
|00001a10| 67 69 76 65 73 20 74 68 | 65 20 64 65 66 61 75 6c |gives th|e defaul|
|00001a20| 74 20 70 6c 61 63 65 6d | 65 6e 74 20 70 61 72 61 |t placem|ent para|
|00001a30| 6d 65 74 65 72 73 20 66 | 6f 72 20 74 68 69 73 20 |meters f|or this |
|00001a40| 63 6c 61 73 73 0a 25 20 | 6f 66 20 66 6c 6f 61 74 |class.% |of float|
|00001a50| 73 2e 20 54 68 65 20 70 | 6c 61 63 65 6d 65 6e 74 |s. The p|lacement|
|00001a60| 20 70 61 72 61 6d 65 74 | 65 72 73 20 61 72 65 20 | paramet|ers are |
|00001a70| 74 68 65 20 73 61 6d 65 | 20 61 73 20 69 6e 20 73 |the same| as in s|
|00001a80| 74 61 6e 64 61 72 64 20 | 5c 4c 61 54 65 58 2c 0a |tandard |\LaTeX,.|
|00001a90| 25 20 69 2e 65 2e 2c 20 | 5c 74 65 78 74 74 74 7b |% i.e., |\texttt{|
|00001aa0| 74 7d 2c 20 5c 74 65 78 | 74 74 74 7b 62 7d 2c 20 |t}, \tex|ttt{b}, |
|00001ab0| 5c 74 65 78 74 74 74 7b | 70 7d 20 61 6e 64 20 5c |\texttt{|p} and \|
|00001ac0| 74 65 78 74 74 74 7b 68 | 7d 20 66 6f 72 20 60 74 |texttt{h|} for `t|
|00001ad0| 6f 70 27 2c 20 60 62 6f | 74 74 6f 6d 27 2c 0a 25 |op', `bo|ttom',.%|
|00001ae0| 20 60 70 61 67 65 27 20 | 61 6e 64 20 60 68 65 72 | `page' |and `her|
|00001af0| 65 27 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |e', resp|ectively|
|00001b00| 2e 0a 25 20 57 68 65 6e | 20 5c 4c 61 54 65 58 5c |..% When| \LaTeX\|
|00001b10| 20 77 72 69 74 65 73 20 | 74 68 65 20 63 61 70 74 | writes |the capt|
|00001b20| 69 6f 6e 73 20 74 6f 20 | 61 6e 20 61 75 78 69 6c |ions to |an auxil|
|00001b30| 69 61 72 79 20 66 69 6c | 65 20 66 6f 72 20 74 68 |iary fil|e for th|
|00001b40| 65 20 6c 69 73 74 0a 25 | 20 6f 66 20 66 69 67 75 |e list.%| of figu|
|00001b50| 72 65 73 20 28 6f 72 20 | 77 68 61 74 65 76 65 72 |res (or |whatever|
|00001b60| 29 2c 20 69 74 27 6c 6c | 20 75 73 65 20 74 68 65 |), it'll| use the|
|00001b70| 20 6a 6f 62 20 6e 61 6d | 65 20 66 6f 6c 6c 6f 77 | job nam|e follow|
|00001b80| 65 64 20 62 79 20 5c 6d | 65 74 61 7b 65 78 74 7d |ed by \m|eta{ext}|
|00001b90| 0a 25 20 61 73 20 61 20 | 66 69 6c 65 20 6e 61 6d |.% as a |file nam|
|00001ba0| 65 2e 0a 25 20 46 69 6e | 61 6c 6c 79 2c 20 74 68 |e..% Fin|ally, th|
|00001bb0| 65 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |e option|al argum|
|00001bc0| 65 6e 74 20 5c 6d 65 74 | 61 7b 77 69 74 68 69 6e |ent \met|a{within|
|00001bd0| 7d 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 65 |} determ|ines whe|
|00001be0| 74 68 65 72 20 66 6c 6f | 61 74 73 0a 25 20 6f 66 |ther flo|ats.% of|
|00001bf0| 20 74 68 69 73 20 63 6c | 61 73 73 20 77 69 6c 6c | this cl|ass will|
|00001c00| 20 62 65 20 6e 75 6d 62 | 65 72 65 64 20 77 69 74 | be numb|ered wit|
|00001c10| 68 69 6e 20 73 6f 6d 65 | 20 73 65 63 74 69 6f 6e |hin some| section|
|00001c20| 61 6c 20 75 6e 69 74 20 | 6f 66 20 74 68 65 20 64 |al unit |of the d|
|00001c30| 6f 63 75 6d 65 6e 74 2e | 0a 25 20 46 6f 72 20 65 |ocument.|.% For e|
|00001c40| 78 61 6d 70 6c 65 2c 20 | 69 66 20 5c 6d 65 74 61 |xample, |if \meta|
|00001c50| 7b 77 69 74 68 69 6e 7d | 24 3d 24 5c 74 65 78 74 |{within}|$=$\text|
|00001c60| 74 74 7b 63 68 61 70 74 | 65 72 7d 2c 20 74 68 65 |tt{chapt|er}, the|
|00001c70| 20 66 6c 6f 61 74 73 20 | 77 69 6c 6c 20 62 65 20 | floats |will be |
|00001c80| 6e 75 6d 62 65 72 65 64 | 0a 25 20 77 69 74 68 69 |numbered|.% withi|
|00001c90| 6e 20 63 68 61 70 74 65 | 72 73 2e 20 28 49 6e 20 |n chapte|rs. (In |
|00001ca0| 73 74 61 6e 64 61 72 64 | 20 5c 4c 61 54 65 58 2c |standard| \LaTeX,|
|00001cb0| 20 74 68 69 73 20 68 61 | 70 70 65 6e 73 20 77 69 | this ha|ppens wi|
|00001cc0| 74 68 20 66 69 67 75 72 | 65 73 20 61 6e 64 20 74 |th figur|es and t|
|00001cd0| 61 62 6c 65 73 0a 25 20 | 69 6e 20 74 68 65 20 5c |ables.% |in the \|
|00001ce0| 74 65 78 74 73 66 7b 72 | 65 70 6f 72 74 7d 20 61 |textsf{r|eport} a|
|00001cf0| 6e 64 20 5c 74 65 78 74 | 73 66 7b 62 6f 6f 6b 7d |nd \text|sf{book}|
|00001d00| 20 64 6f 63 75 6d 65 6e | 74 20 73 74 79 6c 65 73 | documen|t styles|
|00001d10| 2e 29 0a 25 20 41 73 20 | 61 6e 20 65 78 61 6d 70 |.).% As |an examp|
|00001d20| 6c 65 2c 20 50 72 6f 67 | 72 61 6d 7e 5c 72 65 66 |le, Prog|ram~\ref|
|00001d30| 7b 70 72 6f 67 31 2e 31 | 7d 20 61 62 6f 76 65 20 |{prog1.1|} above |
|00001d40| 77 61 73 20 63 72 65 61 | 74 65 64 20 62 79 20 61 |was crea|ted by a|
|00001d50| 20 63 6f 6d 6d 61 6e 64 | 0a 25 20 73 65 71 75 65 | command|.% seque|
|00001d60| 6e 63 65 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 74 |nce simi|lar to t|
|00001d70| 68 61 74 20 73 68 6f 77 | 6e 20 69 6e 20 74 68 65 |hat show|n in the|
|00001d80| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 45 78 61 6d 70 | followi|ng Examp|
|00001d90| 6c 65 2e 0a 25 20 5c 62 | 65 67 69 6e 7b 45 78 61 |le..% \b|egin{Exa|
|00001da0| 6d 70 6c 65 7d 5b 48 5d | 0a 25 20 5c 62 65 67 69 |mple}[H]|.% \begi|
|00001db0| 6e 7b 76 65 72 73 65 7d | 0a 25 20 7c 5c 66 6c 6f |n{verse}|.% |\flo|
|00001dc0| 61 74 73 74 79 6c 65 7b | 72 75 6c 65 64 7d 7c 5c |atstyle{|ruled}|\|
|00001dd0| 5c 0a 25 20 7c 5c 6e 65 | 77 66 6c 6f 61 74 7b 50 |\.% |\ne|wfloat{P|
|00001de0| 72 6f 67 72 61 6d 7d 7b | 74 62 70 7d 7b 6c 6f 70 |rogram}{|tbp}{lop|
|00001df0| 7d 5b 73 65 63 74 69 6f | 6e 5d 7c 5c 5c 0a 25 20 |}[sectio|n]|\\.% |
|00001e00| 5c 64 6f 74 73 5c 20 6c | 6f 61 64 73 20 6f 27 20 |\dots\ l|oads o' |
|00001e10| 73 74 75 66 66 20 5c 64 | 6f 74 73 5c 5c 0a 25 20 |stuff \d|ots\\.% |
|00001e20| 7c 5c 62 65 67 69 6e 7b | 50 72 6f 67 72 61 6d 7d ||\begin{|Program}|
|00001e30| 7c 5c 5c 0a 25 20 7c 5c | 62 65 67 69 6e 7b 76 65 ||\\.% |\|begin{ve|
|00001e40| 72 62 61 74 69 6d 7d 7c | 5c 5c 0a 25 20 5c 64 6f |rbatim}||\\.% \do|
|00001e50| 74 73 5c 20 70 72 6f 67 | 72 61 6d 20 74 65 78 74 |ts\ prog|ram text|
|00001e60| 20 5c 64 6f 74 73 5c 5c | 0a 25 20 7c 5c 65 6e 64 | \dots\\|.% |\end|
|00001e70| 7b 76 65 72 62 61 74 69 | 6d 7d 7c 5c 5c 0a 25 20 |{verbati|m}|\\.% |
|00001e80| 7c 5c 63 61 70 74 69 6f | 6e 7b 7c 5c 64 6f 74 73 ||\captio|n{|\dots|
|00001e90| 5c 20 63 61 70 74 69 6f | 6e 20 5c 64 6f 74 73 7c |\ captio|n \dots||
|00001ea0| 7d 7c 5c 5c 0a 25 20 7c | 5c 65 6e 64 7b 50 72 6f |}|\\.% ||\end{Pro|
|00001eb0| 67 72 61 6d 7d 7c 0a 25 | 20 5c 65 6e 64 7b 76 65 |gram}|.%| \end{ve|
|00001ec0| 72 73 65 7d 0a 25 20 5c | 63 61 70 74 69 6f 6e 7b |rse}.% \|caption{|
|00001ed0| 54 68 69 73 20 69 73 20 | 61 6e 6f 74 68 65 72 20 |This is |another |
|00001ee0| 73 69 6c 6c 79 20 66 6c | 6f 61 74 69 6e 67 20 45 |silly fl|oating E|
|00001ef0| 78 61 6d 70 6c 65 2e 20 | 45 78 63 65 70 74 20 74 |xample. |Except t|
|00001f00| 68 61 74 20 74 68 69 73 | 20 6f 6e 65 0a 25 20 20 |hat this| one.% |
|00001f10| 20 64 6f 65 73 6e 27 74 | 20 61 63 74 75 61 6c 6c | doesn't| actuall|
|00001f20| 79 20 66 6c 6f 61 74 20 | 62 65 63 61 75 73 65 20 |y float |because |
|00001f30| 69 74 20 75 73 65 73 20 | 74 68 65 20 7b 5c 74 74 |it uses |the {\tt|
|00001f40| 5b 48 5d 7d 20 6f 70 74 | 69 6f 6e 61 6c 20 70 61 |[H]} opt|ional pa|
|00001f50| 72 61 6d 65 74 65 72 0a | 25 20 20 20 74 6f 20 61 |rameter.|% to a|
|00001f60| 70 70 65 61 72 20 5c 74 | 65 78 74 62 66 7b 48 65 |ppear \t|extbf{He|
|00001f70| 72 65 7d 2e 20 28 47 6f | 74 63 68 61 2e 29 7d 0a |re}. (Go|tcha.)}.|
|00001f80| 25 20 5c 65 6e 64 7b 45 | 78 61 6d 70 6c 65 7d 0a |% \end{E|xample}.|
|00001f90| 25 0a 25 20 5c 44 65 73 | 63 72 69 62 65 4d 61 63 |%.% \Des|cribeMac|
|00001fa0| 72 6f 7b 5c 66 6c 6f 61 | 74 73 74 79 6c 65 7d 0a |ro{\floa|tstyle}.|
|00001fb0| 25 20 54 68 65 20 7c 5c | 66 6c 6f 61 74 73 74 79 |% The |\|floatsty|
|00001fc0| 6c 65 7c 20 63 6f 6d 6d | 61 6e 64 20 73 65 74 73 |le| comm|and sets|
|00001fd0| 20 61 20 64 65 66 61 75 | 6c 74 20 66 6c 6f 61 74 | a defau|lt float|
|00001fe0| 20 73 74 79 6c 65 2e 20 | 54 68 69 73 20 66 6c 6f | style. |This flo|
|00001ff0| 61 74 20 73 74 79 6c 65 | 0a 25 20 77 69 6c 6c 20 |at style|.% will |
|00002000| 62 65 20 75 73 65 64 20 | 66 6f 72 20 61 6c 6c 20 |be used |for all |
|00002010| 74 68 65 20 66 6c 6f 61 | 74 73 20 74 68 61 74 20 |the floa|ts that |
|00002020| 61 72 65 20 73 75 62 73 | 65 71 75 65 6e 74 6c 79 |are subs|equently|
|00002030| 20 64 65 66 69 6e 65 64 | 20 75 73 69 6e 67 0a 25 | defined| using.%|
|00002040| 20 7c 5c 6e 65 77 66 6c | 6f 61 74 7c 2c 20 75 6e | |\newfl|oat|, un|
|00002050| 74 69 6c 20 61 6e 6f 74 | 68 65 72 20 7c 5c 66 6c |til anot|her |\fl|
|00002060| 6f 61 74 73 74 79 6c 65 | 7c 20 63 6f 6d 6d 61 6e |oatstyle|| comman|
|00002070| 64 20 61 70 70 65 61 72 | 73 2e 0a 25 20 54 68 65 |d appear|s..% The|
|00002080| 20 7c 5c 66 6c 6f 61 74 | 73 74 79 6c 65 7c 20 63 | |\float|style| c|
|00002090| 6f 6d 6d 61 6e 64 20 74 | 61 6b 65 73 20 6f 6e 65 |ommand t|akes one|
|000020a0| 20 61 72 67 75 6d 65 6e | 74 2c 20 74 68 65 20 6e | argumen|t, the n|
|000020b0| 61 6d 65 20 6f 66 20 61 | 20 66 6c 6f 61 74 0a 25 |ame of a| float.%|
|000020c0| 20 73 74 79 6c 65 2e 20 | 46 6f 72 20 69 6e 73 74 | style. |For inst|
|000020d0| 61 6e 63 65 2c 20 7c 5c | 66 6c 6f 61 74 73 74 79 |ance, |\|floatsty|
|000020e0| 6c 65 7b 72 75 6c 65 64 | 7d 7c 2e 20 53 70 65 63 |le{ruled|}|. Spec|
|000020f0| 69 66 79 69 6e 67 20 61 | 20 73 74 72 69 6e 67 20 |ifying a| string |
|00002100| 74 68 61 74 0a 25 20 64 | 6f 65 73 20 6e 6f 74 20 |that.% d|oes not |
|00002110| 6e 61 6d 65 20 61 20 76 | 61 6c 69 64 20 66 6c 6f |name a v|alid flo|
|00002120| 61 74 20 73 74 79 6c 65 | 20 69 73 20 61 6e 20 65 |at style| is an e|
|00002130| 72 72 6f 72 2e 0a 25 0a | 25 20 5c 44 65 73 63 72 |rror..%.|% \Descr|
|00002140| 69 62 65 4d 61 63 72 6f | 7b 5c 66 6c 6f 61 74 6e |ibeMacro|{\floatn|
|00002150| 61 6d 65 7d 0a 25 20 54 | 68 65 20 7c 5c 66 6c 6f |ame}.% T|he |\flo|
|00002160| 61 74 6e 61 6d 65 7c 20 | 63 6f 6d 6d 61 6e 64 20 |atname| |command |
|00002170| 6c 65 74 73 20 79 6f 75 | 20 64 65 66 69 6e 65 20 |lets you| define |
|00002180| 74 68 65 20 5c 65 6d 70 | 68 7b 66 6c 6f 61 74 20 |the \emp|h{float |
|00002190| 6e 61 6d 65 7d 20 74 68 | 61 74 0a 25 20 5c 4c 61 |name} th|at.% \La|
|000021a0| 54 65 58 5c 20 75 73 65 | 73 20 69 6e 20 74 68 65 |TeX\ use|s in the|
|000021b0| 20 63 61 70 74 69 6f 6e | 20 6f 66 20 61 20 66 6c | caption| of a fl|
|000021c0| 6f 61 74 2c 20 69 2e 65 | 2e 2c 20 60 46 69 67 75 |oat, i.e|., `Figu|
|000021d0| 72 65 27 20 66 6f 72 20 | 61 20 66 69 67 75 72 65 |re' for |a figure|
|000021e0| 0a 25 20 61 6e 64 20 73 | 6f 20 6f 6e 2e 20 46 6f |.% and s|o on. Fo|
|000021f0| 72 20 65 78 61 6d 70 6c | 65 2c 20 7c 5c 66 6c 6f |r exampl|e, |\flo|
|00002200| 61 74 6e 61 6d 65 7b 70 | 72 6f 67 72 61 6d 7d 7b |atname{p|rogram}{|
|00002210| 50 72 6f 67 72 61 6d 7d | 7c 2e 0a 25 20 54 68 65 |Program}||..% The|
|00002220| 20 7c 5c 6e 65 77 66 6c | 6f 61 74 7c 20 63 6f 6d | |\newfl|oat| com|
|00002230| 6d 61 6e 64 20 73 65 74 | 73 20 74 68 65 20 66 6c |mand set|s the fl|
|00002240| 6f 61 74 20 6e 61 6d 65 | 20 74 6f 20 69 74 73 20 |oat name| to its |
|00002250| 61 72 67 75 6d 65 6e 74 | 0a 25 20 5c 6d 65 74 61 |argument|.% \meta|
|00002260| 7b 74 79 70 65 7d 20 69 | 66 20 6e 6f 20 6f 74 68 |{type} i|f no oth|
|00002270| 65 72 20 6e 61 6d 65 20 | 68 61 73 20 62 65 65 6e |er name |has been|
|00002280| 20 73 70 65 63 69 66 69 | 65 64 20 62 65 66 6f 72 | specifi|ed befor|
|00002290| 65 2e 0a 25 0a 25 20 5c | 44 65 73 63 72 69 62 65 |e..%.% \|Describe|
|000022a0| 4d 61 63 72 6f 7b 5c 66 | 6c 6f 61 74 70 6c 61 63 |Macro{\f|loatplac|
|000022b0| 65 6d 65 6e 74 7d 0a 25 | 20 54 68 65 20 7c 5c 66 |ement}.%| The |\f|
|000022c0| 6c 6f 61 74 70 6c 61 63 | 65 6d 65 6e 74 7c 20 63 |loatplac|ement| c|
|000022d0| 6f 6d 6d 61 6e 64 20 72 | 65 73 65 74 73 20 74 68 |ommand r|esets th|
|000022e0| 65 20 64 65 66 61 75 6c | 74 20 70 6c 61 63 65 6d |e defaul|t placem|
|000022f0| 65 6e 74 20 73 70 65 63 | 69 66 69 65 72 0a 25 20 |ent spec|ifier.% |
|00002300| 6f 66 20 61 20 63 6c 61 | 73 73 20 6f 66 20 66 6c |of a cla|ss of fl|
|00002310| 6f 61 74 73 2e 20 45 2e | 67 2e 2c 20 7c 5c 66 6c |oats. E.|g., |\fl|
|00002320| 6f 61 74 70 6c 61 63 65 | 6d 65 6e 74 7b 66 69 67 |oatplace|ment{fig|
|00002330| 75 72 65 7d 7b 74 70 7d | 7c 2e 0a 25 0a 25 20 5c |ure}{tp}||..%.% \|
|00002340| 44 65 73 63 72 69 62 65 | 4d 61 63 72 6f 7b 5c 72 |Describe|Macro{\r|
|00002350| 65 73 74 79 6c 65 66 6c | 6f 61 74 7d 0a 25 20 54 |estylefl|oat}.% T|
|00002360| 68 65 20 7c 5c 72 65 73 | 74 79 6c 65 66 6c 6f 61 |he |\res|tylefloa|
|00002370| 74 7c 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 6e 65 |t| comma|nd is ne|
|00002380| 63 65 73 73 61 72 79 20 | 74 6f 20 63 68 61 6e 67 |cessary |to chang|
|00002390| 65 20 73 74 79 6c 65 73 | 20 66 6f 72 20 74 68 65 |e styles| for the|
|000023a0| 0a 25 20 73 74 61 6e 64 | 61 72 64 20 66 6c 6f 61 |.% stand|ard floa|
|000023b0| 74 20 74 79 70 65 73 20 | 5c 74 65 78 74 74 74 7b |t types |\texttt{|
|000023c0| 66 69 67 75 72 65 7d 20 | 61 6e 64 20 5c 74 65 78 |figure} |and \tex|
|000023d0| 74 74 74 7b 74 61 62 6c | 65 7d 2e 20 53 69 6e 63 |ttt{tabl|e}. Sinc|
|000023e0| 65 20 74 68 65 73 65 20 | 61 72 65 6e 27 74 0a 25 |e these |aren't.%|
|000023f0| 20 75 73 75 61 6c 6c 79 | 20 64 65 66 69 6e 65 64 | usually| defined|
|00002400| 20 76 69 61 20 7c 5c 6e | 65 77 66 6c 6f 61 74 7c | via |\n|ewfloat||
|00002410| 2c 20 74 68 65 79 20 64 | 6f 6e 27 74 20 68 61 76 |, they d|on't hav|
|00002420| 65 20 61 20 73 74 79 6c | 65 20 61 73 73 6f 63 69 |e a styl|e associ|
|00002430| 61 74 65 64 0a 25 20 77 | 69 74 68 20 74 68 65 6d |ated.% w|ith them|
|00002440| 2e 20 54 68 75 73 20 79 | 6f 75 20 68 61 76 65 20 |. Thus y|ou have |
|00002450| 74 6f 20 73 61 79 2c 20 | 66 6f 72 20 65 78 61 6d |to say, |for exam|
|00002460| 70 6c 65 2c 5c 5c 5b 32 | 70 74 5d 0a 25 20 5c 68 |ple,\\[2|pt].% \h|
|00002470| 73 70 61 63 65 2a 7b 5c | 4d 61 63 72 6f 49 6e 64 |space*{\|MacroInd|
|00002480| 65 6e 74 7d 7c 5c 66 6c | 6f 61 74 73 74 79 6c 65 |ent}|\fl|oatstyle|
|00002490| 7b 72 75 6c 65 64 7d 7c | 5c 5c 0a 25 20 5c 68 73 |{ruled}||\\.% \hs|
|000024a0| 70 61 63 65 2a 7b 5c 4d | 61 63 72 6f 49 6e 64 65 |pace*{\M|acroInde|
|000024b0| 6e 74 7d 7c 5c 72 65 73 | 74 79 6c 65 66 6c 6f 61 |nt}|\res|tylefloa|
|000024c0| 74 7b 74 61 62 6c 65 7d | 7c 5c 5c 5b 32 70 74 5d |t{table}||\\[2pt]|
|000024d0| 0a 25 20 74 6f 20 68 61 | 76 65 20 74 61 62 6c 65 |.% to ha|ve table|
|000024e0| 73 20 63 6f 6d 65 20 6f | 75 74 20 5c 74 65 78 74 |s come o|ut \text|
|000024f0| 74 74 7b 72 75 6c 65 64 | 7d 2e 20 54 68 65 20 63 |tt{ruled|}. The c|
|00002500| 6f 6d 6d 61 6e 64 20 61 | 6c 73 6f 20 6c 65 74 73 |ommand a|lso lets|
|00002510| 20 79 6f 75 20 63 68 61 | 6e 67 65 0a 25 20 73 74 | you cha|nge.% st|
|00002520| 79 6c 65 20 66 6f 72 20 | 66 6c 6f 61 74 73 20 74 |yle for |floats t|
|00002530| 68 61 74 20 79 6f 75 20 | 64 65 66 69 6e 65 20 76 |hat you |define v|
|00002540| 69 61 20 7c 5c 6e 65 77 | 66 6c 6f 61 74 7c 2c 20 |ia |\new|float|, |
|00002550| 61 6c 74 68 6f 75 67 68 | 20 74 68 69 73 0a 25 20 |although| this.% |
|00002560| 69 73 2c 20 74 79 70 6f | 67 72 61 70 68 69 63 61 |is, typo|graphica|
|00002570| 6c 6c 79 20 73 70 65 61 | 6b 69 6e 67 2c 20 6e 6f |lly spea|king, no|
|00002580| 74 20 61 20 67 6f 6f 64 | 20 69 64 65 61 2e 0a 25 |t a good| idea..%|
|00002590| 20 53 65 65 20 74 61 62 | 6c 65 7e 5c 72 65 66 7b | See tab|le~\ref{|
|000025a0| 74 61 62 6c 65 31 7d 20 | 66 6f 72 20 61 6e 20 65 |table1} |for an e|
|000025b0| 78 61 6d 70 6c 65 2e 0a | 25 20 5c 44 65 6c 65 74 |xample..|% \Delet|
|000025c0| 65 53 68 6f 72 74 56 65 | 72 62 7b 5c 7c 7d 0a 25 |eShortVe|rb{\|}.%|
|000025d0| 20 5c 62 65 67 69 6e 7b | 74 61 62 6c 65 7d 20 5c | \begin{|table} \|
|000025e0| 64 65 66 5c 42 23 31 7b | 24 5c 64 69 73 70 6c 61 |def\B#1{|$\displa|
|000025f0| 79 73 74 79 6c 65 7b 6e | 5c 63 68 6f 6f 73 65 23 |ystyle{n|\choose#|
|00002600| 31 7d 24 7d 0a 25 20 5c | 62 65 67 69 6e 7b 63 65 |1}$}.% \|begin{ce|
|00002610| 6e 74 65 72 7d 20 5c 62 | 65 67 69 6e 7b 74 61 62 |nter} \b|egin{tab|
|00002620| 75 6c 61 72 7d 7b 63 7c | 63 63 63 63 63 63 63 63 |ular}{c||cccccccc|
|00002630| 7d 0a 25 20 24 6e 24 26 | 5c 42 30 26 5c 42 31 26 |}.% $n$&|\B0&\B1&|
|00002640| 5c 42 32 26 5c 42 33 26 | 5c 42 34 26 5c 42 35 26 |\B2&\B3&|\B4&\B5&|
|00002650| 5c 42 36 26 5c 42 37 5c | 5c 20 5c 68 6c 69 6e 65 |\B6&\B7\|\ \hline|
|00002660| 0a 25 20 20 30 20 26 20 | 31 5c 5c 0a 25 20 20 31 |.% 0 & |1\\.% 1|
|00002670| 20 26 20 31 26 31 5c 5c | 0a 25 20 20 32 20 26 20 | & 1&1\\|.% 2 & |
|00002680| 31 26 32 26 31 5c 5c 0a | 25 20 20 33 20 26 20 31 |1&2&1\\.|% 3 & 1|
|00002690| 26 33 26 33 26 31 5c 5c | 0a 25 20 20 34 20 26 20 |&3&3&1\\|.% 4 & |
|000026a0| 31 26 34 26 36 26 34 26 | 31 5c 5c 0a 25 20 20 35 |1&4&6&4&|1\\.% 5|
|000026b0| 20 26 20 31 26 35 26 31 | 30 26 31 30 26 35 26 31 | & 1&5&1|0&10&5&1|
|000026c0| 5c 5c 0a 25 20 20 36 20 | 26 20 31 26 36 26 31 35 |\\.% 6 |& 1&6&15|
|000026d0| 26 32 30 26 31 35 26 36 | 26 31 5c 5c 0a 25 20 20 |&20&15&6|&1\\.% |
|000026e0| 37 20 26 20 31 26 37 26 | 32 31 26 33 35 26 33 35 |7 & 1&7&|21&35&35|
|000026f0| 26 32 31 26 37 26 31 0a | 25 20 5c 65 6e 64 7b 74 |&21&7&1.|% \end{t|
|00002700| 61 62 75 6c 61 72 7d 20 | 5c 65 6e 64 7b 63 65 6e |abular} |\end{cen|
|00002710| 74 65 72 7d 0a 25 20 5c | 63 61 70 74 69 6f 6e 7b |ter}.% \|caption{|
|00002720| 50 61 73 63 61 6c 27 73 | 20 74 72 69 61 6e 67 6c |Pascal's| triangl|
|00002730| 65 2e 20 54 68 69 73 20 | 69 73 20 61 20 72 65 2d |e. This |is a re-|
|00002740| 73 74 79 6c 65 64 20 5c | 4c 61 54 65 58 5c 20 5c |styled \|LaTeX\ \|
|00002750| 74 65 78 74 74 74 7b 74 | 61 62 6c 65 7d 2e 25 0a |texttt{t|able}.%.|
|00002760| 25 20 20 20 5c 6c 61 62 | 65 6c 7b 74 61 62 6c 65 |% \lab|el{table|
|00002770| 31 7d 7d 0a 25 20 5c 65 | 6e 64 7b 74 61 62 6c 65 |1}}.% \e|nd{table|
|00002780| 7d 0a 25 20 5c 4d 61 6b | 65 53 68 6f 72 74 56 65 |}.% \Mak|eShortVe|
|00002790| 72 62 7b 5c 7c 7d 0a 25 | 0a 25 20 5c 44 65 73 63 |rb{\|}.%|.% \Desc|
|000027a0| 72 69 62 65 4d 61 63 72 | 6f 7b 5c 6c 69 73 74 6f |ribeMacr|o{\listo|
|000027b0| 66 7d 0a 25 20 54 68 65 | 20 7c 5c 6c 69 73 74 6f |f}.% The| |\listo|
|000027c0| 66 7c 20 63 6f 6d 6d 61 | 6e 64 20 70 72 6f 64 75 |f| comma|nd produ|
|000027d0| 63 65 73 20 61 20 6c 69 | 73 74 20 6f 66 20 61 6c |ces a li|st of al|
|000027e0| 6c 20 74 68 65 20 66 6c | 6f 61 74 73 20 6f 66 20 |l the fl|oats of |
|000027f0| 61 20 67 69 76 65 6e 0a | 25 20 63 6c 61 73 73 2e |a given.|% class.|
|00002800| 20 49 74 73 20 73 79 6e | 74 61 78 20 69 73 5c 5c | Its syn|tax is\\|
|00002810| 5b 32 70 74 5d 0a 25 20 | 5c 68 73 70 61 63 65 2a |[2pt].% |\hspace*|
|00002820| 7b 5c 4d 61 63 72 6f 49 | 6e 64 65 6e 74 7d 7c 5c |{\MacroI|ndent}|\|
|00002830| 6c 69 73 74 6f 66 7b 7c | 5c 6d 65 74 61 7b 74 79 |listof{||\meta{ty|
|00002840| 70 65 7d 7c 7d 7b 7c 5c | 6d 65 74 61 7b 74 69 74 |pe}|}{|\|meta{tit|
|00002850| 6c 65 7d 5e 5e 41 0a 25 | 20 20 20 7c 7d 7c 5c 5c |le}^^A.%| |}|\\|
|00002860| 5b 32 70 74 5d 0a 25 20 | 5c 6d 65 74 61 7b 74 79 |[2pt].% |\meta{ty|
|00002870| 70 65 7d 20 69 73 20 74 | 68 65 20 66 6c 6f 61 74 |pe} is t|he float|
|00002880| 20 74 79 70 65 20 67 69 | 76 65 6e 20 69 6e 20 74 | type gi|ven in t|
|00002890| 68 65 20 7c 5c 6e 65 77 | 66 6c 6f 61 74 7c 20 63 |he |\new|float| c|
|000028a0| 6f 6d 6d 61 6e 64 2e 0a | 25 20 5c 6d 65 74 61 7b |ommand..|% \meta{|
|000028b0| 74 69 74 6c 65 7d 20 69 | 73 20 75 73 65 64 20 66 |title} i|s used f|
|000028c0| 6f 72 20 74 68 65 20 74 | 69 74 6c 65 20 6f 66 20 |or the t|itle of |
|000028d0| 74 68 65 20 6c 69 73 74 | 20 61 73 20 77 65 6c 6c |the list| as well|
|000028e0| 20 61 73 20 74 68 65 20 | 68 65 61 64 69 6e 67 73 | as the |headings|
|000028f0| 0a 25 20 69 66 20 74 68 | 65 20 63 75 72 72 65 6e |.% if th|e curren|
|00002900| 74 20 70 61 67 65 20 73 | 74 79 6c 65 20 69 6e 63 |t page s|tyle inc|
|00002910| 6c 75 64 65 73 20 74 68 | 65 6d 2e 20 4f 74 68 65 |ludes th|em. Othe|
|00002920| 72 77 69 73 65 2c 20 74 | 68 65 20 7c 5c 6c 69 73 |rwise, t|he |\lis|
|00002930| 74 6f 66 7c 0a 25 20 63 | 6f 6d 6d 61 6e 64 20 69 |tof|.% c|ommand i|
|00002940| 73 20 61 6e 61 6c 6f 67 | 6f 75 73 20 74 6f 20 74 |s analog|ous to t|
|00002950| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 5c 4c 61 54 |he built|-in \LaT|
|00002960| 65 58 5c 20 63 6f 6d 6d | 61 6e 64 73 0a 25 20 7c |eX\ comm|ands.% ||
|00002970| 5c 6c 69 73 74 6f 66 66 | 69 67 75 72 65 73 7c 20 |\listoff|igures| |
|00002980| 61 6e 64 20 7c 5c 6c 69 | 73 74 6f 66 74 61 62 6c |and |\li|stoftabl|
|00002990| 65 73 7c 2e 0a 25 0a 25 | 20 5c 73 65 63 74 69 6f |es|..%.%| \sectio|
|000029a0| 6e 7b 54 68 65 20 55 73 | 65 72 20 49 6e 74 65 72 |n{The Us|er Inter|
|000029b0| 66 61 63 65 20 2d 2d 2d | 20 5c 74 65 78 74 74 74 |face ---| \texttt|
|000029c0| 7b 5b 48 5d 7d 20 50 6c | 61 63 65 6d 65 6e 74 20 |{[H]} Pl|acement |
|000029d0| 53 70 65 63 69 66 69 65 | 72 7d 0a 25 0a 25 20 4d |Specifie|r}.%.% M|
|000029e0| 61 6e 79 20 70 65 6f 70 | 6c 65 20 66 69 6e 64 20 |any peop|le find |
|000029f0| 5c 4c 61 54 65 58 27 73 | 20 66 6c 6f 61 74 20 70 |\LaTeX's| float p|
|00002a00| 6c 61 63 65 6d 65 6e 74 | 20 73 70 65 63 69 66 69 |lacement| specifi|
|00002a10| 65 72 73 20 74 6f 6f 20 | 72 65 73 74 72 69 63 74 |ers too |restrict|
|00002a20| 69 76 65 2e 0a 25 20 41 | 20 43 6f 6d 6d 6f 6e 6c |ive..% A| Commonl|
|00002a30| 79 20 55 74 74 65 72 65 | 64 20 43 6f 6d 70 6c 61 |y Uttere|d Compla|
|00002a40| 69 6e 74 20 28 43 55 43 | 29 20 63 61 6c 6c 73 20 |int (CUC|) calls |
|00002a50| 66 6f 72 20 61 20 77 61 | 79 20 74 6f 20 70 6c 61 |for a wa|y to pla|
|00002a60| 63 65 20 61 20 66 6c 6f | 61 74 0a 25 20 65 78 61 |ce a flo|at.% exa|
|00002a70| 63 74 6c 79 20 61 74 20 | 74 68 65 20 73 70 6f 74 |ctly at |the spot|
|00002a80| 20 77 68 65 72 65 20 69 | 74 20 6f 63 63 75 72 73 | where i|t occurs|
|00002a90| 20 69 6e 20 74 68 65 20 | 69 6e 70 75 74 20 66 69 | in the |input fi|
|00002aa0| 6c 65 2c 20 69 2e 65 2e | 2c 20 74 6f 20 5c 65 6d |le, i.e.|, to \em|
|00002ab0| 70 68 7b 6e 6f 74 7d 0a | 25 20 68 61 76 65 20 69 |ph{not}.|% have i|
|00002ac0| 74 20 66 6c 6f 61 74 20 | 61 74 20 61 6c 6c 2e 0a |t float |at all..|
|00002ad0| 25 20 49 74 20 73 65 65 | 6d 73 20 74 68 61 74 20 |% It see|ms that |
|00002ae0| 74 68 65 20 5c 74 65 78 | 74 74 74 7b 5b 68 5d 7d |the \tex|ttt{[h]}|
|00002af0| 20 73 70 65 63 69 66 69 | 65 72 20 73 68 6f 75 6c | specifi|er shoul|
|00002b00| 64 20 64 6f 20 74 68 61 | 74 2c 20 62 75 74 20 69 |d do tha|t, but i|
|00002b10| 6e 20 66 61 63 74 20 69 | 74 0a 25 20 6f 6e 6c 79 |n fact i|t.% only|
|00002b20| 20 73 75 67 67 65 73 74 | 73 20 74 6f 20 5c 4c 61 | suggest|s to \La|
|00002b30| 54 65 58 5c 20 73 6f 6d | 65 74 68 69 6e 67 20 61 |TeX\ som|ething a|
|00002b40| 6c 6f 6e 67 20 74 68 65 | 20 6c 69 6e 65 73 20 6f |long the| lines o|
|00002b50| 66 20 60 60 70 75 74 20 | 74 68 65 20 66 6c 6f 61 |f ``put |the floa|
|00002b60| 74 0a 25 20 68 65 72 65 | 20 69 66 20 69 74 27 73 |t.% here| if it's|
|00002b70| 20 4f 4b 20 77 69 74 68 | 20 79 6f 75 27 27 2e 20 | OK with| you''. |
|00002b80| 41 73 20 69 74 20 74 75 | 72 6e 73 20 6f 75 74 2c |As it tu|rns out,|
|00002b90| 20 5c 4c 61 54 65 58 5c | 20 68 61 72 64 6c 79 20 | \LaTeX\| hardly |
|00002ba0| 65 76 65 72 20 66 65 65 | 6c 73 0a 25 20 69 6e 63 |ever fee|ls.% inc|
|00002bb0| 6c 69 6e 65 64 20 74 6f | 20 61 63 74 75 61 6c 6c |lined to| actuall|
|00002bc0| 79 20 64 6f 20 74 68 61 | 74 2e 20 54 68 69 73 20 |y do tha|t. This |
|00002bd0| 73 69 74 75 61 74 69 6f | 6e 20 63 61 6e 20 62 65 |situatio|n can be|
|00002be0| 20 69 6d 70 72 6f 76 65 | 64 20 62 79 0a 25 20 6a | improve|d by.% j|
|00002bf0| 75 64 69 63 69 6f 75 73 | 20 6d 61 6e 69 70 75 6c |udicious| manipul|
|00002c00| 61 74 69 6f 6e 20 6f 66 | 20 66 6c 6f 61 74 20 73 |ation of| float s|
|00002c10| 74 79 6c 65 20 70 61 72 | 61 6d 65 74 65 72 73 2e |tyle par|ameters.|
|00002c20| 0a 25 0a 25 20 54 68 65 | 20 73 61 6d 65 20 65 66 |.%.% The| same ef|
|00002c30| 66 65 63 74 20 63 61 6e | 20 62 65 20 61 63 68 69 |fect can| be achi|
|00002c40| 65 76 65 64 20 62 79 20 | 63 68 61 6e 67 69 6e 67 |eved by |changing|
|00002c50| 20 74 68 65 20 61 63 74 | 75 61 6c 20 6d 65 74 68 | the act|ual meth|
|00002c60| 6f 64 20 6f 66 0a 25 20 | 70 6c 61 63 69 6e 67 20 |od of.% |placing |
|00002c70| 66 6c 6f 61 74 73 2e 20 | 44 61 76 69 64 20 43 61 |floats. |David Ca|
|00002c80| 72 6c 69 73 6c 65 27 73 | 20 5c 74 65 78 74 73 66 |rlisle's| \textsf|
|00002c90| 7b 68 65 72 65 7d 20 6f | 70 74 69 6f 6e 20 69 6e |{here} o|ption in|
|00002ca0| 74 72 6f 64 75 63 65 73 | 20 61 20 6e 65 77 20 66 |troduces| a new f|
|00002cb0| 6c 6f 61 74 0a 25 20 70 | 6c 61 63 65 6d 65 6e 74 |loat.% p|lacement|
|00002cc0| 20 73 70 65 63 69 66 69 | 65 72 2c 20 6e 61 6d 65 | specifi|er, name|
|00002cd0| 6c 79 20 5c 74 65 78 74 | 74 74 7b 5b 48 5d 7d 2c |ly \text|tt{[H]},|
|00002ce0| 20 77 68 69 63 68 2c 20 | 77 68 65 6e 20 61 64 64 | which, |when add|
|00002cf0| 65 64 20 74 6f 20 61 20 | 66 6c 6f 61 74 2c 0a 25 |ed to a |float,.%|
|00002d00| 20 74 65 6c 6c 73 20 5c | 4c 61 54 65 58 5c 20 74 | tells \|LaTeX\ t|
|00002d10| 6f 20 60 60 70 75 74 20 | 69 74 20 48 45 52 45 2c |o ``put |it HERE,|
|00002d20| 20 70 65 72 69 6f 64 27 | 27 2e 20 49 66 20 74 68 | period'|'. If th|
|00002d30| 65 72 65 20 69 73 6e 27 | 74 20 65 6e 6f 75 67 68 |ere isn'|t enough|
|00002d40| 20 73 70 61 63 65 0a 25 | 20 6c 65 66 74 20 6f 6e | space.%| left on|
|00002d50| 20 74 68 65 20 70 61 67 | 65 2c 20 74 68 65 20 66 | the pag|e, the f|
|00002d60| 6c 6f 61 74 20 69 73 20 | 63 61 72 72 69 65 64 20 |loat is |carried |
|00002d70| 6f 76 65 72 20 74 6f 20 | 74 68 65 20 6e 65 78 74 |over to |the next|
|00002d80| 20 70 61 67 65 20 74 6f | 67 65 74 68 65 72 0a 25 | page to|gether.%|
|00002d90| 20 77 69 74 68 20 77 68 | 61 74 65 76 65 72 20 66 | with wh|atever f|
|00002da0| 6f 6c 6c 6f 77 73 2c 20 | 65 76 65 6e 20 74 68 6f |ollows, |even tho|
|00002db0| 75 67 68 20 74 68 65 72 | 65 20 6d 69 67 68 74 20 |ugh ther|e might |
|00002dc0| 73 74 69 6c 6c 20 62 65 | 20 72 6f 6f 6d 20 6c 65 |still be| room le|
|00002dd0| 66 74 20 66 6f 72 0a 25 | 20 73 6f 6d 65 20 6f 66 |ft for.%| some of|
|00002de0| 20 74 68 61 74 2e 0a 25 | 20 54 68 69 73 20 73 74 | that..%| This st|
|00002df0| 79 6c 65 20 6f 70 74 69 | 6f 6e 20 70 72 6f 76 69 |yle opti|on provi|
|00002e00| 64 65 73 20 74 68 65 20 | 5c 74 65 78 74 74 74 7b |des the |\texttt{|
|00002e10| 5b 48 5d 7d 20 73 70 65 | 63 69 66 69 65 72 20 66 |[H]} spe|cifier f|
|00002e20| 6f 72 20 6e 65 77 6c 79 | 20 64 65 66 69 6e 65 64 |or newly| defined|
|00002e30| 0a 25 20 63 6c 61 73 73 | 65 73 20 6f 66 20 66 6c |.% class|es of fl|
|00002e40| 6f 61 74 73 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |oats as |well as |
|00002e50| 74 68 65 20 70 72 65 64 | 65 66 69 6e 65 64 20 5c |the pred|efined \|
|00002e60| 74 65 78 74 74 74 7b 66 | 69 67 75 72 65 7d 73 20 |texttt{f|igure}s |
|00002e70| 61 6e 64 0a 25 20 5c 74 | 65 78 74 74 74 7b 74 61 |and.% \t|exttt{ta|
|00002e80| 62 6c 65 7d 73 2c 20 74 | 68 65 72 65 62 79 20 73 |ble}s, t|hereby s|
|00002e90| 75 70 65 72 73 65 64 69 | 6e 67 20 5c 74 65 78 74 |upersedi|ng \text|
|00002ea0| 73 66 7b 68 65 72 65 7d | 2e 20 44 61 76 69 64 20 |sf{here}|. David |
|00002eb0| 73 75 67 67 65 73 74 73 | 0a 25 20 74 68 61 74 20 |suggests|.% that |
|00002ec0| 74 68 65 20 5c 74 65 78 | 74 73 66 7b 68 65 72 65 |the \tex|tsf{here|
|00002ed0| 7d 20 6f 70 74 69 6f 6e | 20 62 65 20 77 69 74 68 |} option| be with|
|00002ee0| 64 72 61 77 6e 20 66 72 | 6f 6d 20 74 68 65 20 61 |drawn fr|om the a|
|00002ef0| 72 63 68 69 76 65 73 20 | 69 6e 20 64 75 65 20 63 |rchives |in due c|
|00002f00| 6f 75 72 73 65 2e 0a 25 | 0a 25 20 54 68 65 20 7b |ourse..%|.% The {|
|00002f10| 5c 74 74 5b 48 5d 7d 20 | 73 70 65 63 69 66 69 65 |\tt[H]} |specifie|
|00002f20| 72 20 6d 61 79 20 73 69 | 6d 70 6c 79 20 62 65 20 |r may si|mply be |
|00002f30| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 66 6c 6f |added to| the flo|
|00002f40| 61 74 20 61 73 20 61 6e | 20 6f 70 74 69 6f 6e 61 |at as an| optiona|
|00002f50| 6c 0a 25 20 61 72 67 75 | 6d 65 6e 74 2c 20 6c 69 |l.% argu|ment, li|
|00002f60| 6b 65 20 61 6c 6c 20 74 | 68 65 20 6f 74 68 65 72 |ke all t|he other|
|00002f70| 20 73 70 65 63 69 66 69 | 65 72 73 2e 0a 25 20 49 | specifi|ers..% I|
|00002f80| 74 20 6d 61 79 20 5c 65 | 6d 70 68 7b 6e 6f 74 7d |t may \e|mph{not}|
|00002f90| 20 62 65 20 75 73 65 64 | 20 69 6e 20 63 6f 6e 6a | be used| in conj|
|00002fa0| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 61 6e 79 |unction |with any|
|00002fb0| 20 6f 74 68 65 72 20 70 | 6c 61 63 65 6d 65 6e 74 | other p|lacement|
|00002fc0| 0a 25 20 73 70 65 63 69 | 66 69 65 72 73 2c 20 73 |.% speci|fiers, s|
|00002fd0| 6f 20 7b 5c 74 74 5b 48 | 68 74 62 70 5d 7d 20 69 |o {\tt[H|htbp]} i|
|00002fe0| 73 20 69 6c 6c 65 67 61 | 6c 2e 0a 25 20 4e 65 69 |s illega|l..% Nei|
|00002ff0| 74 68 65 72 20 6d 61 79 | 20 69 74 20 62 65 20 75 |ther may| it be u|
|00003000| 73 65 64 20 61 73 20 74 | 68 65 20 64 65 66 61 75 |sed as t|he defau|
|00003010| 6c 74 20 70 6c 61 63 65 | 6d 65 6e 74 20 73 70 65 |lt place|ment spe|
|00003020| 63 69 66 69 65 72 20 66 | 6f 72 20 61 20 77 68 6f |cifier f|or a who|
|00003030| 6c 65 0a 25 20 63 6c 61 | 73 73 20 6f 66 20 66 6c |le.% cla|ss of fl|
|00003040| 6f 61 74 73 2e 0a 25 20 | 54 68 65 20 66 6f 6c 6c |oats..% |The foll|
|00003050| 6f 77 69 6e 67 20 74 61 | 62 6c 65 20 69 73 0a 25 |owing ta|ble is.%|
|00003060| 20 64 65 66 69 6e 65 64 | 20 6c 69 6b 65 20 74 68 | defined| like th|
|00003070| 69 73 3a 0a 25 20 5c 62 | 65 67 69 6e 7b 76 65 72 |is:.% \b|egin{ver|
|00003080| 73 65 7d 0a 25 20 7c 5c | 62 65 67 69 6e 7b 74 61 |se}.% |\|begin{ta|
|00003090| 62 6c 65 7d 5b 48 5d 7c | 5c 5c 0a 25 20 7c 5c 62 |ble}[H]||\\.% |\b|
|000030a0| 65 67 69 6e 7b 74 61 62 | 75 6c 61 72 7d 7b 63 6c |egin{tab|ular}{cl|
|000030b0| 7d 7c 5c 5c 0a 25 20 7c | 5c 74 74 20 74 20 26 20 |}|\\.% ||\tt t & |
|000030c0| 54 6f 70 20 6f 66 20 74 | 68 65 20 70 61 67 65 5c |Top of t|he page\|
|000030d0| 5c 7c 5c 5c 0a 25 20 5c | 64 6f 74 73 5c 20 6d 6f |\|\\.% \|dots\ mo|
|000030e0| 72 65 20 73 74 75 66 66 | 20 5c 64 6f 74 73 5c 5c |re stuff| \dots\\|
|000030f0| 0a 25 20 5c 65 6e 64 7b | 76 65 72 73 65 7d 0a 25 |.% \end{|verse}.%|
|00003100| 20 28 49 74 20 73 65 65 | 6d 73 20 74 68 61 74 20 | (It see|ms that |
|00003110| 49 20 68 61 76 65 20 74 | 6f 20 61 64 64 20 73 6f |I have t|o add so|
|00003120| 6d 65 20 65 78 74 72 61 | 6e 65 6f 75 73 20 63 68 |me extra|neous ch|
|00003130| 61 74 74 65 72 20 68 65 | 72 65 20 6a 75 73 74 20 |atter he|re just |
|00003140| 73 6f 20 74 68 61 74 0a | 25 20 74 68 65 20 66 6c |so that.|% the fl|
|00003150| 6f 61 74 20 61 63 74 75 | 61 6c 6c 79 20 63 6f 6d |oat actu|ally com|
|00003160| 65 73 20 6f 75 74 20 72 | 69 67 68 74 20 69 6e 20 |es out r|ight in |
|00003170| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 61 20 |the midd|le of a |
|00003180| 70 72 69 6e 74 65 64 20 | 70 61 67 65 2e 0a 25 20 |printed |page..% |
|00003190| 57 68 65 6e 20 49 20 5c | 4c 61 54 65 58 20 65 64 |When I \|LaTeX ed|
|000031a0| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | the doc|umentati|
|000031b0| 6f 6e 20 6a 75 73 74 20 | 6e 6f 77 20 69 74 20 74 |on just |now it t|
|000031c0| 75 72 6e 65 64 20 6f 75 | 74 20 74 68 61 74 20 74 |urned ou|t that t|
|000031d0| 68 65 72 65 0a 25 20 77 | 61 73 20 61 20 70 61 67 |here.% w|as a pag|
|000031e0| 65 20 62 72 65 61 6b 20 | 74 68 61 74 20 66 65 6c |e break |that fel|
|000031f0| 6c 20 65 78 61 63 74 6c | 79 20 62 65 74 77 65 65 |l exactl|y betwee|
|00003200| 6e 20 74 68 65 20 60 60 | 53 6f 20 6e 6f 77 27 27 |n the ``|So now''|
|00003210| 20 6c 69 6e 65 20 61 6e | 64 20 74 68 65 0a 25 20 | line an|d the.% |
|00003220| 66 6c 6f 61 74 2e 20 54 | 68 69 73 20 77 6f 75 6c |float. T|his woul|
|00003230| 64 6e 27 74 20 50 72 6f | 76 65 20 41 6e 79 74 68 |dn't Pro|ve Anyth|
|00003240| 69 6e 67 2e 20 42 6f 74 | 68 65 72 2e 29 0a 25 20 |ing. Bot|her.).% |
|00003250| 53 6f 20 6e 6f 77 20 77 | 65 20 68 61 76 65 20 74 |So now w|e have t|
|00003260| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 66 6c 6f |he follo|wing flo|
|00003270| 61 74 20 70 6c 61 63 65 | 6d 65 6e 74 20 73 70 65 |at place|ment spe|
|00003280| 63 69 66 69 65 72 73 3a | 0a 25 20 5c 62 65 67 69 |cifiers:|.% \begi|
|00003290| 6e 7b 74 61 62 6c 65 7d | 5b 48 5d 0a 25 20 5c 62 |n{table}|[H].% \b|
|000032a0| 65 67 69 6e 7b 74 61 62 | 75 6c 61 72 7d 7b 63 6c |egin{tab|ular}{cl|
|000032b0| 7d 0a 25 20 5c 74 74 20 | 74 20 26 20 54 6f 70 20 |}.% \tt |t & Top |
|000032c0| 6f 66 20 74 68 65 20 70 | 61 67 65 5c 5c 0a 25 20 |of the p|age\\.% |
|000032d0| 5c 74 74 20 62 20 26 20 | 42 6f 74 74 6f 6d 20 6f |\tt b & |Bottom o|
|000032e0| 66 20 74 68 65 20 70 61 | 67 65 5c 5c 0a 25 20 5c |f the pa|ge\\.% \|
|000032f0| 74 74 20 70 20 26 20 50 | 61 67 65 20 6f 66 20 66 |tt p & P|age of f|
|00003300| 6c 6f 61 74 73 5c 5c 0a | 25 20 5c 74 74 20 68 20 |loats\\.|% \tt h |
|00003310| 26 20 48 65 72 65 2c 20 | 69 66 20 70 6f 73 73 69 |& Here, |if possi|
|00003320| 62 6c 65 5c 5c 0a 25 20 | 5c 74 74 20 48 20 26 20 |ble\\.% |\tt H & |
|00003330| 48 65 72 65 2c 20 64 65 | 66 69 6e 69 74 65 6c 79 |Here, de|finitely|
|00003340| 0a 25 20 5c 65 6e 64 7b | 74 61 62 75 6c 61 72 7d |.% \end{|tabular}|
|00003350| 0a 25 20 5e 5e 41 5c 63 | 61 70 74 69 6f 6e 7b 43 |.% ^^A\c|aption{C|
|00003360| 6f 75 6c 64 20 69 74 20 | 62 65 20 74 68 61 74 20 |ould it |be that |
|00003370| 74 68 69 73 20 6a 75 73 | 74 20 6e 65 65 64 73 20 |this jus|t needs |
|00003380| 61 20 63 61 70 74 69 6f | 6e 3f 7d 0a 25 20 5c 65 |a captio|n?}.% \e|
|00003390| 6e 64 7b 74 61 62 6c 65 | 7d 0a 25 0a 25 20 5c 53 |nd{table|}.%.% \S|
|000033a0| 74 6f 70 45 76 65 6e 74 | 75 61 6c 6c 79 7b 5c 50 |topEvent|ually{\P|
|000033b0| 72 69 6e 74 49 6e 64 65 | 78 7d 0a 25 0a 25 20 5c |rintInde|x}.%.% \|
|000033c0| 73 65 63 74 69 6f 6e 7b | 49 6d 70 6c 65 6d 65 6e |section{|Implemen|
|000033d0| 74 61 74 69 6f 6e 7d 0a | 25 0a 25 20 5c 73 75 62 |tation}.|%.% \sub|
|000033e0| 73 65 63 74 69 6f 6e 7b | 42 61 73 69 63 73 7d 0a |section{|Basics}.|
|000033f0| 25 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |%.% \|begin{ma|
|00003400| 63 72 6f 63 6f 64 65 7d | 0a 25 3c 2a 70 61 63 6b |crocode}|.%<*pack|
|00003410| 61 67 65 3e 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |age>.% | \end{m|
|00003420| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 0a 25 20 49 6e |acrocode|}.%.% In|
|00003430| 20 5c 4c 61 54 65 58 2c | 20 66 6c 6f 61 74 73 20 | \LaTeX,| floats |
|00003440| 61 72 65 20 61 73 73 69 | 67 6e 65 64 20 60 74 79 |are assi|gned `ty|
|00003450| 70 65 20 6e 75 6d 62 65 | 72 73 27 20 74 68 61 74 |pe numbe|rs' that|
|00003460| 20 61 72 65 20 70 6f 77 | 65 72 73 20 6f 66 7e 24 | are pow|ers of~$|
|00003470| 32 24 2e 0a 25 20 53 69 | 6e 63 65 20 74 68 65 72 |2$..% Si|nce ther|
|00003480| 65 20 61 72 65 20 6f 6e | 6c 79 20 74 77 6f 20 63 |e are on|ly two c|
|00003490| 6c 61 73 73 65 73 20 6f | 66 20 66 6c 6f 61 74 73 |lasses o|f floats|
|000034a0| 2c 20 74 68 65 69 72 20 | 74 79 70 65 20 6e 75 6d |, their |type num|
|000034b0| 62 65 72 73 20 61 72 65 | 0a 25 20 68 61 72 64 77 |bers are|.% hardw|
|000034c0| 69 72 65 64 20 69 6e 74 | 6f 20 74 68 65 20 64 6f |ired int|o the do|
|000034d0| 63 75 6d 65 6e 74 20 73 | 74 79 6c 65 73 2e 20 57 |cument s|tyles. W|
|000034e0| 65 20 6e 65 65 64 20 74 | 6f 20 62 65 20 73 6f 6d |e need t|o be som|
|000034f0| 65 77 68 61 74 20 6d 6f | 72 65 20 66 6c 65 78 69 |ewhat mo|re flexi|
|00003500| 62 6c 65 2c 0a 25 20 61 | 6e 64 20 74 68 75 73 20 |ble,.% a|nd thus |
|00003510| 77 65 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 61 20 |we initi|alize a |
|00003520| 63 6f 75 6e 74 65 72 20 | 74 6f 20 68 6f 6c 64 20 |counter |to hold |
|00003530| 74 68 65 20 6e 65 78 74 | 20 74 79 70 65 20 6e 75 |the next| type nu|
|00003540| 6d 62 65 72 20 74 6f 20 | 62 65 0a 25 20 61 73 73 |mber to |be.% ass|
|00003550| 69 67 6e 65 64 2e 20 54 | 68 69 73 20 63 6f 75 6e |igned. T|his coun|
|00003560| 74 65 72 20 77 69 6c 6c | 20 62 65 20 69 6e 63 72 |ter will| be incr|
|00003570| 65 6d 65 6e 74 65 64 20 | 61 70 70 72 6f 70 72 69 |emented |appropri|
|00003580| 61 74 65 6c 79 20 6c 61 | 74 65 72 2e 0a 25 20 20 |ately la|ter..% |
|00003590| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|000035a0| 64 65 7d 0a 5c 6e 65 77 | 63 6f 75 6e 74 65 72 7b |de}.\new|counter{|
|000035b0| 66 6c 6f 61 74 40 74 79 | 70 65 7d 0a 5c 40 69 66 |float@ty|pe}.\@if|
|000035c0| 75 6e 64 65 66 69 6e 65 | 64 7b 63 40 66 69 67 75 |undefine|d{c@figu|
|000035d0| 72 65 7d 25 0a 20 20 7b | 5c 73 65 74 63 6f 75 6e |re}%. {|\setcoun|
|000035e0| 74 65 72 7b 66 6c 6f 61 | 74 40 74 79 70 65 7d 7b |ter{floa|t@type}{|
|000035f0| 31 7d 7d 25 0a 20 20 7b | 5c 73 65 74 63 6f 75 6e |1}}%. {|\setcoun|
|00003600| 74 65 72 7b 66 6c 6f 61 | 74 40 74 79 70 65 7d 7b |ter{floa|t@type}{|
|00003610| 34 7d 7d 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |4}}.% | \end{ma|
|00003620| 63 72 6f 63 6f 64 65 7d | 0a 25 20 54 6f 20 77 61 |crocode}|.% To wa|
|00003630| 72 6d 20 75 70 2c 20 77 | 65 27 6c 6c 20 6c 6f 6f |rm up, w|e'll loo|
|00003640| 6b 20 61 74 20 73 6f 6d | 65 20 6f 66 20 74 68 65 |k at som|e of the|
|00003650| 20 73 69 6d 70 6c 65 72 | 20 63 6f 6d 6d 61 6e 64 | simpler| command|
|00003660| 73 20 66 69 72 73 74 2e | 0a 25 20 5c 62 65 67 69 |s first.|.% \begi|
|00003670| 6e 7b 6d 61 63 72 6f 7d | 7b 5c 66 6c 6f 61 74 73 |n{macro}|{\floats|
|00003680| 74 79 6c 65 7d 0a 25 20 | 54 68 65 20 7c 5c 66 6c |tyle}.% |The |\fl|
|00003690| 6f 61 74 73 74 79 6c 65 | 7c 20 63 6f 6d 6d 61 6e |oatstyle|| comman|
|000036a0| 64 20 70 75 74 73 20 69 | 74 73 20 61 72 67 75 6d |d puts i|ts argum|
|000036b0| 65 6e 74 20 69 6e 74 6f | 20 74 68 65 0a 25 20 7c |ent into| the.% ||
|000036c0| 5c 66 6c 6f 61 74 40 73 | 74 79 6c 65 7c 20 6d 61 |\float@s|tyle| ma|
|000036d0| 63 72 6f 20 61 73 20 74 | 68 65 20 6e 61 6d 65 20 |cro as t|he name |
|000036e0| 6f 66 20 74 68 65 20 6e | 65 77 20 66 6c 6f 61 74 |of the n|ew float|
|000036f0| 20 73 74 79 6c 65 2e 0a | 25 20 42 75 74 20 69 66 | style..|% But if|
|00003700| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 20 64 6f | the arg|ument do|
|00003710| 65 73 6e 27 74 20 64 65 | 6e 6f 74 65 20 61 20 66 |esn't de|note a f|
|00003720| 6c 6f 61 74 20 73 74 79 | 6c 65 2c 20 61 6e 20 65 |loat sty|le, an e|
|00003730| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 0a 25 20 69 |rror mes|sage.% i|
|00003740| 73 20 6f 75 74 70 75 74 | 20 69 6e 73 74 65 61 64 |s output| instead|
|00003750| 3a 20 45 61 63 68 20 66 | 6c 6f 61 74 20 73 74 79 |: Each f|loat sty|
|00003760| 6c 65 20 5c 6d 65 74 61 | 7b 73 74 79 6c 65 7d 20 |le \meta|{style} |
|00003770| 68 61 73 20 61 20 63 6f | 72 72 65 73 70 6f 6e 64 |has a co|rrespond|
|00003780| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 0a 25 20 7c 5c |ing comm|and.% |\|
|00003790| 66 73 40 7c 5c 6d 65 74 | 61 7b 73 74 79 6c 65 7d |fs@|\met|a{style}|
|000037a0| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 74 | that co|ntains t|
|000037b0| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 64 |he appro|priate d|
|000037c0| 65 63 6c 61 72 61 74 69 | 6f 6e 73 2e 0a 25 20 49 |eclarati|ons..% I|
|000037d0| 66 20 74 68 65 20 63 6f | 6e 74 72 6f 6c 20 73 65 |f the co|ntrol se|
|000037e0| 71 75 65 6e 63 65 20 7c | 5c 66 73 40 7c 5c 6d 65 |quence ||\fs@|\me|
|000037f0| 74 61 7b 61 72 67 7d 20 | 28 77 68 69 63 68 20 67 |ta{arg} |(which g|
|00003800| 6f 65 73 20 77 69 74 68 | 20 74 68 65 0a 25 20 61 |oes with| the.% a|
|00003810| 72 67 75 6d 65 6e 74 20 | 5c 6d 65 74 61 7b 61 72 |rgument |\meta{ar|
|00003820| 67 7d 20 74 6f 20 7c 5c | 66 6c 6f 61 74 73 74 79 |g} to |\|floatsty|
|00003830| 6c 65 7c 29 20 69 73 20 | 75 6e 64 65 66 69 6e 65 |le|) is |undefine|
|00003840| 64 2c 20 69 2e 65 2e 2c | 0a 25 20 65 71 75 61 6c |d, i.e.,|.% equal|
|00003850| 73 20 7c 5c 72 65 6c 61 | 78 7c 20 75 6e 64 65 72 |s |\rela|x| under|
|00003860| 20 7c 5c 69 66 78 7c 2c | 20 74 68 65 6e 20 74 68 | |\ifx|,| then th|
|00003870| 65 20 66 6c 6f 61 74 20 | 73 74 79 6c 65 20 5c 6d |e float |style \m|
|00003880| 65 74 61 7b 61 72 67 7d | 0a 25 20 69 73 20 75 6e |eta{arg}|.% is un|
|00003890| 6b 6e 6f 77 6e 2c 20 61 | 6e 64 20 77 65 20 63 61 |known, a|nd we ca|
|000038a0| 6c 6c 20 7c 5c 66 6c 6f | 61 74 40 65 72 72 6f 72 |ll |\flo|at@error|
|000038b0| 7b 7c 5c 6d 65 74 61 7b | 61 72 67 7d 7c 7d 7c 20 |{|\meta{|arg}|}| |
|000038c0| 66 6f 72 20 74 68 65 0a | 25 20 65 72 72 6f 72 20 |for the.|% error |
|000038d0| 6d 65 73 73 61 67 65 2e | 0a 25 20 20 20 20 5c 62 |message.|.% \b|
|000038e0| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|000038f0| 25 5c 64 65 66 5c 66 6c | 6f 61 74 73 74 79 6c 65 |%\def\fl|oatstyle|
|00003900| 23 31 7b 5c 65 78 70 61 | 6e 64 61 66 74 65 72 5c |#1{\expa|ndafter\|
|00003910| 69 66 78 5c 63 73 6e 61 | 6d 65 20 66 73 40 23 31 |ifx\csna|me fs@#1|
|00003920| 5c 65 6e 64 63 73 6e 61 | 6d 65 5c 72 65 6c 61 78 |\endcsna|me\relax|
|00003930| 0a 25 20 20 5c 66 6c 6f | 61 74 40 65 72 72 6f 72 |.% \flo|at@error|
|00003940| 7b 23 31 7d 5c 65 6c 73 | 65 5c 64 65 66 5c 66 6c |{#1}\els|e\def\fl|
|00003950| 6f 61 74 40 73 74 79 6c | 65 7b 23 31 7d 5c 66 69 |oat@styl|e{#1}\fi|
|00003960| 7d 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 5c 66 6c |}.\newco|mmand\fl|
|00003970| 6f 61 74 73 74 79 6c 65 | 5b 31 5d 7b 5c 40 69 66 |oatstyle|[1]{\@if|
|00003980| 75 6e 64 65 66 69 6e 65 | 64 7b 66 73 40 23 31 7d |undefine|d{fs@#1}|
|00003990| 25 0a 20 20 7b 5c 66 6c | 6f 61 74 40 65 72 72 6f |%. {\fl|oat@erro|
|000039a0| 72 7b 23 31 7d 7d 25 0a | 20 20 7b 5c 64 65 66 5c |r{#1}}%.| {\def\|
|000039b0| 66 6c 6f 61 74 40 73 74 | 79 6c 65 7b 23 31 7d 7d |float@st|yle{#1}}|
|000039c0| 7d 0a 25 20 20 20 20 5c | 65 6e 64 7b 6d 61 63 72 |}.% \|end{macr|
|000039d0| 6f 63 6f 64 65 7d 0a 25 | 20 5c 65 6e 64 7b 6d 61 |ocode}.%| \end{ma|
|000039e0| 63 72 6f 7d 0a 25 20 5c | 62 65 67 69 6e 7b 6d 61 |cro}.% \|begin{ma|
|000039f0| 63 72 6f 7d 7b 5c 66 6c | 6f 61 74 40 65 72 72 6f |cro}{\fl|oat@erro|
|00003a00| 72 7d 0a 25 20 48 65 72 | 65 27 73 20 74 68 65 20 |r}.% Her|e's the |
|00003a10| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 2e 20 7c |error me|ssage. ||
|00003a20| 5c 40 65 68 61 7c 20 69 | 73 20 74 68 65 20 68 65 |\@eha| i|s the he|
|00003a30| 6c 70 20 6d 65 73 73 61 | 67 65 20 74 68 61 74 20 |lp messa|ge that |
|00003a40| 73 61 79 73 0a 25 20 60 | 59 6f 75 72 20 63 6f 6d |says.% `|Your com|
|00003a50| 6d 61 6e 64 20 77 61 73 | 20 69 67 6e 6f 72 65 64 |mand was| ignored|
|00003a60| 2e 27 0a 25 20 20 20 20 | 5c 62 65 67 69 6e 7b 6d |.'.% |\begin{m|
|00003a70| 61 63 72 6f 63 6f 64 65 | 7d 0a 5c 6e 65 77 63 6f |acrocode|}.\newco|
|00003a80| 6d 6d 61 6e 64 5c 66 6c | 6f 61 74 40 65 72 72 6f |mmand\fl|oat@erro|
|00003a90| 72 5b 31 5d 7b 5c 50 61 | 63 6b 61 67 65 45 72 72 |r[1]{\Pa|ckageErr|
|00003aa0| 6f 72 7b 66 6c 6f 61 74 | 7d 7b 25 0a 20 20 55 6e |or{float|}{%. Un|
|00003ab0| 6b 6e 6f 77 6e 20 66 6c | 6f 61 74 20 73 74 79 6c |known fl|oat styl|
|00003ac0| 65 20 60 23 31 27 0a 7d | 7b 5c 40 65 68 61 7d 7d |e `#1'.}|{\@eha}}|
|00003ad0| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00003ae0| 63 6f 64 65 7d 0a 25 20 | 5c 65 6e 64 7b 6d 61 63 |code}.% |\end{mac|
|00003af0| 72 6f 7d 0a 25 0a 25 20 | 54 68 65 20 6e 65 78 74 |ro}.%.% |The next|
|00003b00| 20 74 77 6f 20 63 6f 6d | 6d 61 6e 64 73 20 61 72 | two com|mands ar|
|00003b10| 65 20 65 76 65 6e 20 73 | 69 6d 70 6c 65 72 2e 20 |e even s|impler. |
|00003b20| 5c 4c 61 54 65 58 5c 20 | 73 61 79 73 20 74 68 61 |\LaTeX\ |says tha|
|00003b30| 74 0a 25 20 7c 5c 66 70 | 73 40 7c 5c 6d 65 74 61 |t.% |\fp|s@|\meta|
|00003b40| 7b 66 6c 6f 61 74 7d 20 | 63 6f 6e 74 61 69 6e 73 |{float} |contains|
|00003b50| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 70 6c 61 | the def|ault pla|
|00003b60| 63 65 6d 65 6e 74 20 73 | 70 65 63 69 66 69 65 72 |cement s|pecifier|
|00003b70| 20 66 6f 72 0a 25 20 74 | 68 65 20 63 6c 61 73 73 | for.% t|he class|
|00003b80| 20 6f 66 20 66 6c 6f 61 | 74 73 20 5c 6d 65 74 61 | of floa|ts \meta|
|00003b90| 7b 66 6c 6f 61 74 7d 2e | 20 7c 5c 66 6e 61 6d 65 |{float}.| |\fname|
|00003ba0| 40 7c 5c 6d 65 74 61 7b | 66 6c 6f 61 74 7d 20 65 |@|\meta{|float} e|
|00003bb0| 78 70 61 6e 64 73 0a 25 | 20 74 6f 20 74 68 65 20 |xpands.%| to the |
|00003bc0| 6e 61 6d 65 20 74 68 61 | 74 20 61 70 70 65 61 72 |name tha|t appear|
|00003bd0| 73 20 69 6e 20 5c 6d 65 | 74 61 7b 66 6c 6f 61 74 |s in \me|ta{float|
|00003be0| 7d 20 63 61 70 74 69 6f | 6e 73 2c 20 65 2e 67 2e |} captio|ns, e.g.|
|00003bf0| 2c 20 60 46 69 67 75 72 | 65 27 2e 0a 25 20 28 54 |, `Figur|e'..% (T|
|00003c00| 68 69 73 20 69 73 20 6f | 75 72 20 6f 77 6e 20 64 |his is o|ur own d|
|00003c10| 65 66 69 6e 69 74 69 6f | 6e 2e 29 0a 25 20 20 20 |efinitio|n.).% |
|00003c20| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 63 6f 64 | \begin{|macrocod|
|00003c30| 65 7d 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 5c 66 |e}.\newc|ommand\f|
|00003c40| 6c 6f 61 74 6e 61 6d 65 | 5b 32 5d 7b 5c 40 6e 61 |loatname|[2]{\@na|
|00003c50| 6d 65 64 65 66 7b 66 6e | 61 6d 65 40 23 31 7d 7b |medef{fn|ame@#1}{|
|00003c60| 23 32 7d 7d 0a 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |#2}}.\ne|wcommand|
|00003c70| 5c 66 6c 6f 61 74 70 6c | 61 63 65 6d 65 6e 74 5b |\floatpl|acement[|
|00003c80| 32 5d 7b 5c 40 6e 61 6d | 65 64 65 66 7b 66 70 73 |2]{\@nam|edef{fps|
|00003c90| 40 23 31 7d 7b 23 32 7d | 7d 0a 25 20 20 20 20 5c |@#1}{#2}|}.% \|
|00003ca0| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00003cb0| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|00003cc0| 7b 5c 72 65 73 74 79 6c | 65 66 6c 6f 61 74 7d 0a |{\restyl|efloat}.|
|00003cd0| 25 20 54 68 65 20 7c 5c | 72 65 73 74 79 6c 65 66 |% The |\|restylef|
|00003ce0| 6c 6f 61 74 7c 20 63 6f | 6d 6d 61 6e 64 20 73 65 |loat| co|mmand se|
|00003cf0| 74 73 20 75 70 20 65 76 | 65 72 79 74 68 69 6e 67 |ts up ev|erything|
|00003d00| 20 73 6f 20 74 68 61 74 | 20 73 75 62 73 65 71 75 | so that| subsequ|
|00003d10| 65 6e 74 0a 25 20 63 6f | 6d 6d 61 6e 64 73 20 6c |ent.% co|mmands l|
|00003d20| 69 6b 65 20 7c 5c 62 65 | 67 69 6e 7b 7c 5c 6d 65 |ike |\be|gin{|\me|
|00003d30| 74 61 7b 66 6c 6f 61 74 | 7d 7c 7d 7c 20 75 73 65 |ta{float|}|}| use|
|00003d40| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00003d50| 0a 25 20 66 6c 6f 61 74 | 20 73 74 79 6c 65 2e 20 |.% float| style. |
|00003d60| 49 74 20 64 65 66 69 6e | 65 73 20 7c 5c 66 73 74 |It defin|es |\fst|
|00003d70| 40 7c 5c 6d 65 74 61 7b | 66 6c 6f 61 74 7d 20 74 |@|\meta{|float} t|
|00003d80| 6f 20 65 78 70 61 6e 64 | 20 74 6f 20 61 20 63 6f |o expand| to a co|
|00003d90| 6d 6d 61 6e 64 0a 25 20 | 74 68 61 74 20 73 65 74 |mmand.% |that set|
|00003da0| 73 20 75 70 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s up the| current|
|00003db0| 6c 79 20 73 65 6c 65 63 | 74 65 64 20 66 6c 6f 61 |ly selec|ted floa|
|00003dc0| 74 20 73 74 79 6c 65 20 | 28 7c 5c 66 73 40 7c 5c |t style |(|\fs@|\|
|00003dd0| 6d 65 74 61 7b 73 74 79 | 6c 65 7d 29 2e 0a 25 20 |meta{sty|le})..% |
|00003de0| 54 68 65 6e 20 69 74 20 | 64 65 66 69 6e 65 73 20 |Then it |defines |
|00003df0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 7c 5c 62 |the comm|ands |\b|
|00003e00| 65 67 69 6e 7b 7c 5c 6d | 65 74 61 7b 66 6c 6f 61 |egin{|\m|eta{floa|
|00003e10| 74 7d 7c 7d 7c 2c 0a 25 | 20 7c 5c 65 6e 64 7b 7c |t}|}|,.%| |\end{||
|00003e20| 5c 6d 65 74 61 7b 66 6c | 6f 61 74 7d 7c 7d 7c 2c |\meta{fl|oat}|}|,|
|00003e30| 20 7c 5c 62 65 67 69 6e | 7b 7c 5c 6d 65 74 61 7b | |\begin|{|\meta{|
|00003e40| 66 6c 6f 61 74 7d 7c 2a | 7d 7c 20 61 6e 64 0a 25 |float}|*|}| and.%|
|00003e50| 20 7c 5c 65 6e 64 7b 7c | 5c 6d 65 74 61 7b 66 6c | |\end{||\meta{fl|
|00003e60| 6f 61 74 7d 7c 2a 7d 7c | 2e 0a 25 20 20 20 20 5c |oat}|*}||..% \|
|00003e70| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00003e80| 0a 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 5c 72 65 73 |.\newcom|mand\res|
|00003e90| 74 79 6c 65 66 6c 6f 61 | 74 5b 31 5d 7b 5c 65 78 |tylefloa|t[1]{\ex|
|00003ea0| 70 61 6e 64 61 66 74 65 | 72 5c 65 64 65 66 5c 63 |pandafte|r\edef\c|
|00003eb0| 73 6e 61 6d 65 0a 20 20 | 66 73 74 40 23 31 5c 65 |sname. |fst@#1\e|
|00003ec0| 6e 64 63 73 6e 61 6d 65 | 7b 5c 65 78 70 61 6e 64 |ndcsname|{\expand|
|00003ed0| 61 66 74 65 72 5c 6e 6f | 65 78 70 61 6e 64 5c 63 |after\no|expand\c|
|00003ee0| 73 6e 61 6d 65 0a 20 20 | 20 20 66 73 40 5c 66 6c |sname. | fs@\fl|
|00003ef0| 6f 61 74 40 73 74 79 6c | 65 5c 65 6e 64 63 73 6e |oat@styl|e\endcsn|
|00003f00| 61 6d 65 7d 25 0a 20 20 | 20 5c 40 6e 61 6d 65 64 |ame}%. | \@named|
|00003f10| 65 66 7b 23 31 7d 7b 5c | 62 67 72 6f 75 70 5c 40 |ef{#1}{\|bgroup\@|
|00003f20| 6e 61 6d 65 75 73 65 7b | 66 73 74 40 23 31 7d 5c |nameuse{|fst@#1}\|
|00003f30| 40 66 6c 6f 61 74 7b 23 | 31 7d 7d 25 0a 20 20 20 |@float{#|1}}%. |
|00003f40| 5c 40 6e 61 6d 65 64 65 | 66 7b 23 31 2a 7d 7b 5c |\@namede|f{#1*}{\|
|00003f50| 62 67 72 6f 75 70 5c 40 | 6e 61 6d 65 75 73 65 7b |bgroup\@|nameuse{|
|00003f60| 66 73 74 40 23 31 7d 5c | 40 64 62 6c 66 6c 6f 61 |fst@#1}\|@dblfloa|
|00003f70| 74 7b 23 31 7d 7d 25 0a | 20 20 20 5c 65 78 70 61 |t{#1}}%.| \expa|
|00003f80| 6e 64 61 66 74 65 72 5c | 6c 65 74 5c 63 73 6e 61 |ndafter\|let\csna|
|00003f90| 6d 65 20 65 6e 64 23 31 | 5c 65 6e 64 63 73 6e 61 |me end#1|\endcsna|
|00003fa0| 6d 65 5c 66 6c 6f 61 74 | 40 65 6e 64 0a 20 20 20 |me\float|@end. |
|00003fb0| 5c 65 78 70 61 6e 64 61 | 66 74 65 72 5c 6c 65 74 |\expanda|fter\let|
|00003fc0| 5c 63 73 6e 61 6d 65 20 | 65 6e 64 23 31 2a 5c 65 |\csname |end#1*\e|
|00003fd0| 6e 64 63 73 6e 61 6d 65 | 5c 66 6c 6f 61 74 40 64 |ndcsname|\float@d|
|00003fe0| 62 6c 65 6e 64 7d 0a 25 | 20 20 20 20 5c 65 6e 64 |blend}.%| \end|
|00003ff0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 5c 65 |{macroco|de}.% \e|
|00004000| 6e 64 7b 6d 61 63 72 6f | 7d 0a 25 0a 25 20 5c 62 |nd{macro|}.%.% \b|
|00004010| 65 67 69 6e 7b 6d 61 63 | 72 6f 7d 7b 5c 6e 65 77 |egin{mac|ro}{\new|
|00004020| 66 6c 6f 61 74 7d 0a 25 | 20 4e 6f 77 20 77 65 20 |float}.%| Now we |
|00004030| 63 61 6e 20 65 78 70 6c | 61 69 6e 20 68 6f 77 20 |can expl|ain how |
|00004040| 74 6f 20 64 65 66 69 6e | 65 20 61 20 6e 65 77 20 |to defin|e a new |
|00004050| 63 6c 61 73 73 20 6f 66 | 20 66 6c 6f 61 74 73 2e |class of| floats.|
|00004060| 20 52 65 63 61 6c 6c 20 | 74 68 61 74 0a 25 20 74 | Recall |that.% t|
|00004070| 68 65 20 74 68 72 65 65 | 20 72 65 71 75 69 72 65 |he three| require|
|00004080| 64 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 7c |d argume|nts to ||
|00004090| 5c 6e 65 77 66 6c 6f 61 | 74 7c 20 61 72 65 20 5c |\newfloa|t| are \|
|000040a0| 6d 65 74 61 7b 74 79 70 | 65 7d 2c 0a 25 20 5c 6d |meta{typ|e},.% \m|
|000040b0| 65 74 61 7b 70 6c 61 63 | 65 6d 65 6e 74 7d 20 61 |eta{plac|ement} a|
|000040c0| 6e 64 20 5c 6d 65 74 61 | 7b 65 78 74 7d 2c 20 72 |nd \meta|{ext}, r|
|000040d0| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 20 46 69 72 |espectiv|ely. Fir|
|000040e0| 73 74 20 77 65 20 73 61 | 76 65 20 74 68 65 0a 25 |st we sa|ve the.%|
|000040f0| 20 6c 61 74 74 65 72 20 | 74 77 6f 2e 0a 25 20 20 | latter |two..% |
|00004100| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|00004110| 64 65 7d 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 5c |de}.\new|command\|
|00004120| 6e 65 77 66 6c 6f 61 74 | 5b 33 5d 7b 5c 40 6e 61 |newfloat|[3]{\@na|
|00004130| 6d 65 64 65 66 7b 65 78 | 74 40 23 31 7d 7b 23 33 |medef{ex|t@#1}{#3|
|00004140| 7d 0a 20 20 5c 66 6c 6f | 61 74 70 6c 61 63 65 6d |}. \flo|atplacem|
|00004150| 65 6e 74 7b 23 31 7d 7b | 23 32 7d 25 0a 25 20 20 |ent{#1}{|#2}%.% |
|00004160| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00004170| 7d 0a 25 20 54 68 65 6e | 20 77 65 20 66 69 67 75 |}.% Then| we figu|
|00004180| 72 65 20 6f 75 74 20 61 | 20 64 65 66 61 75 6c 74 |re out a| default|
|00004190| 20 76 61 6c 75 65 20 66 | 6f 72 20 74 68 65 20 60 | value f|or the `|
|000041a0| 63 61 70 74 69 6f 6e 20 | 6e 61 6d 65 27 20 6f 66 |caption |name' of|
|000041b0| 20 74 68 69 73 0a 25 20 | 63 6c 61 73 73 20 6f 66 | this.% |class of|
|000041c0| 20 66 6c 6f 61 74 73 2e | 20 49 66 20 74 68 65 20 | floats.| If the |
|000041d0| 7c 5c 66 6e 61 6d 65 40 | 7c 5c 6d 65 74 61 7b 74 ||\fname@||\meta{t|
|000041e0| 79 70 65 7d 20 69 73 6e | 27 74 20 61 6c 72 65 61 |ype} isn|'t alrea|
|000041f0| 64 79 20 64 65 66 69 6e | 65 64 2c 0a 25 20 77 65 |dy defin|ed,.% we|
|00004200| 20 74 65 6e 74 61 74 69 | 76 65 6c 79 20 75 73 65 | tentati|vely use|
|00004210| 20 5c 6d 65 74 61 7b 74 | 79 70 65 7d 20 61 73 20 | \meta{t|ype} as |
|00004220| 74 68 65 20 6e 61 6d 65 | 2e 20 54 68 69 73 20 69 |the name|. This i|
|00004230| 73 20 63 6f 6e 76 65 6e | 69 65 6e 74 20 69 66 0a |s conven|ient if.|
|00004240| 25 20 5c 6d 65 74 61 7b | 74 79 70 65 7d 20 69 73 |% \meta{|type} is|
|00004250| 2c 20 73 61 79 2c 20 5c | 74 65 78 74 74 74 7b 50 |, say, \|texttt{P|
|00004260| 72 6f 67 72 61 6d 7d 2c | 20 73 69 6e 63 65 20 6e |rogram},| since n|
|00004270| 6f 20 7c 5c 66 6c 6f 61 | 74 6e 61 6d 65 7c 20 63 |o |\floa|tname| c|
|00004280| 6f 6d 6d 61 6e 64 0a 25 | 20 69 73 20 6e 65 63 65 |ommand.%| is nece|
|00004290| 73 73 61 72 79 20 61 74 | 20 61 6c 6c 2e 0a 25 20 |ssary at| all..% |
|000042a0| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|000042b0| 6f 64 65 7d 0a 20 20 5c | 40 69 66 75 6e 64 65 66 |ode}. \|@ifundef|
|000042c0| 69 6e 65 64 7b 66 6e 61 | 6d 65 40 23 31 7d 7b 5c |ined{fna|me@#1}{\|
|000042d0| 66 6c 6f 61 74 6e 61 6d | 65 7b 23 31 7d 7b 23 31 |floatnam|e{#1}{#1|
|000042e0| 7d 7d 7b 7d 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |}}{}.% | \end{m|
|000042f0| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 54 68 65 6e |acrocode|}.% Then|
|00004300| 20 77 65 20 73 65 74 20 | 75 70 20 74 68 65 20 74 | we set |up the t|
|00004310| 79 70 65 20 6e 75 6d 62 | 65 72 20 66 6f 72 20 5c |ype numb|er for \|
|00004320| 4c 61 54 65 58 5c 20 69 | 6e 20 7c 5c 66 74 79 70 |LaTeX\ i|n |\ftyp|
|00004330| 65 40 7c 5c 6d 65 74 61 | 7b 74 79 70 65 7d 2e 0a |e@|\meta|{type}..|
|00004340| 25 20 41 66 74 65 72 77 | 61 72 64 73 20 77 65 20 |% Afterw|ards we |
|00004350| 68 61 76 65 20 74 6f 20 | 73 65 74 20 74 68 65 20 |have to |set the |
|00004360| 7c 66 6c 6f 61 74 40 74 | 79 70 65 7c 20 74 6f 20 ||float@t|ype| to |
|00004370| 74 68 65 20 6e 65 78 74 | 20 67 72 65 61 74 65 72 |the next| greater|
|00004380| 20 70 6f 77 65 72 0a 25 | 20 6f 66 20 74 77 6f 2c | power.%| of two,|
|00004390| 20 73 6f 20 74 68 61 74 | 20 69 74 20 69 73 20 72 | so that| it is r|
|000043a0| 65 61 64 79 20 66 6f 72 | 20 74 68 65 20 6e 65 78 |eady for| the nex|
|000043b0| 74 20 7c 5c 6e 65 77 66 | 6c 6f 61 74 7c 2e 20 46 |t |\newf|loat|. F|
|000043c0| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 0a 25 20 77 65 |ortunate|ly,.% we|
|000043d0| 20 6a 75 73 74 20 68 61 | 76 65 20 74 6f 20 64 6f | just ha|ve to do|
|000043e0| 75 62 6c 65 20 69 74 20 | 62 79 20 61 64 64 69 6e |uble it |by addin|
|000043f0| 67 2e 20 57 65 20 64 6f | 6e 27 74 20 62 6f 74 68 |g. We do|n't both|
|00004400| 65 72 20 63 68 65 63 6b | 69 6e 67 20 66 6f 72 20 |er check|ing for |
|00004410| 6f 76 65 72 66 6c 6f 77 | 0a 25 20 73 69 6e 63 65 |overflow|.% since|
|00004420| 20 69 74 20 69 73 20 70 | 72 65 74 74 79 20 75 6e | it is p|retty un|
|00004430| 6c 69 6b 65 6c 79 20 74 | 68 61 74 20 73 6f 6d 65 |likely t|hat some|
|00004440| 62 6f 64 79 20 77 69 6c | 6c 20 64 65 66 69 6e 65 |body wil|l define|
|00004450| 20 32 35 20 64 69 66 66 | 65 72 65 6e 74 20 63 6c | 25 diff|erent cl|
|00004460| 61 73 73 65 73 0a 25 20 | 6f 66 20 66 6c 6f 61 74 |asses.% |of float|
|00004470| 73 2e 20 46 69 6e 61 6c | 6c 79 2c 20 77 65 20 63 |s. Final|ly, we c|
|00004480| 61 6c 6c 20 7c 5c 72 65 | 73 74 79 6c 65 66 6c 6f |all |\re|styleflo|
|00004490| 61 74 7c 20 74 6f 20 64 | 65 66 69 6e 65 20 74 68 |at| to d|efine th|
|000044a0| 65 20 73 74 79 6c 65 20 | 61 6e 64 0a 25 20 63 6f |e style |and.% co|
|000044b0| 6d 6d 61 6e 64 73 20 66 | 6f 72 20 74 68 69 73 20 |mmands f|or this |
|000044c0| 63 6c 61 73 73 20 6f 66 | 20 66 6c 6f 61 74 73 2e |class of| floats.|
|000044d0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|000044e0| 72 6f 63 6f 64 65 7d 0a | 20 20 5c 65 78 70 61 6e |rocode}.| \expan|
|000044f0| 64 61 66 74 65 72 5c 65 | 64 65 66 5c 63 73 6e 61 |dafter\e|def\csna|
|00004500| 6d 65 20 66 74 79 70 65 | 40 23 31 5c 65 6e 64 63 |me ftype|@#1\endc|
|00004510| 73 6e 61 6d 65 7b 5c 76 | 61 6c 75 65 7b 66 6c 6f |sname{\v|alue{flo|
|00004520| 61 74 40 74 79 70 65 7d | 7d 25 0a 20 20 5c 61 64 |at@type}|}%. \ad|
|00004530| 64 74 6f 63 6f 75 6e 74 | 65 72 7b 66 6c 6f 61 74 |dtocount|er{float|
|00004540| 40 74 79 70 65 7d 7b 5c | 76 61 6c 75 65 7b 66 6c |@type}{\|value{fl|
|00004550| 6f 61 74 40 74 79 70 65 | 7d 7d 0a 20 20 5c 72 65 |oat@type|}}. \re|
|00004560| 73 74 79 6c 65 66 6c 6f | 61 74 7b 23 31 7d 25 0a |styleflo|at{#1}%.|
|00004570| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|00004580| 6f 64 65 7d 0a 25 20 4e | 6f 77 20 61 6c 6c 20 74 |ode}.% N|ow all t|
|00004590| 68 61 74 27 73 20 6c 65 | 66 74 20 69 73 20 74 6f |hat's le|ft is to|
|000045a0| 20 61 73 73 65 6d 62 6c | 65 20 74 68 65 20 7c 5c | assembl|e the |\|
|000045b0| 66 6e 75 6d 40 7c 5c 6d | 65 74 61 7b 74 79 70 65 |fnum@|\m|eta{type|
|000045c0| 7d 20 6d 61 63 72 6f 0a | 25 20 74 68 61 74 20 5c |} macro.|% that \|
|000045d0| 4c 61 54 65 58 5c 20 77 | 61 6e 74 73 20 74 6f 20 |LaTeX\ w|ants to |
|000045e0| 75 73 65 20 69 6e 20 69 | 74 73 20 63 61 70 74 69 |use in i|ts capti|
|000045f0| 6f 6e 73 2e 20 42 61 73 | 69 63 61 6c 6c 79 20 69 |ons. Bas|ically i|
|00004600| 74 20 69 73 20 6a 75 73 | 74 0a 25 20 60 63 61 70 |t is jus|t.% `cap|
|00004610| 74 69 6f 6e 20 6e 61 6d | 65 27 24 7b 7d 2b 7b 7d |tion nam|e'${}+{}|
|00004620| 24 60 63 6f 75 6e 74 65 | 72 20 76 61 6c 75 65 27 |$`counte|r value'|
|00004630| 2c 20 64 69 73 67 75 69 | 73 65 64 20 73 6f 20 74 |, disgui|sed so t|
|00004640| 68 61 74 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 0a |hat the |command.|
|00004650| 25 20 5c 65 6d 70 68 7b | 6e 61 6d 65 73 7d 20 61 |% \emph{|names} a|
|00004660| 70 70 65 61 72 20 69 6e | 20 74 68 65 20 64 65 66 |ppear in| the def|
|00004670| 69 6e 69 74 69 6f 6e 20 | 69 6e 73 74 65 61 64 20 |inition |instead |
|00004680| 6f 66 20 74 68 65 69 72 | 20 65 78 70 61 6e 73 69 |of their| expansi|
|00004690| 6f 6e 73 2e 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ons..% | \begin|
|000046a0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 20 20 5c 65 |{macroco|de}. \e|
|000046b0| 78 70 61 6e 64 61 66 74 | 65 72 5c 65 64 65 66 5c |xpandaft|er\edef\|
|000046c0| 63 73 6e 61 6d 65 20 66 | 6e 75 6d 40 23 31 5c 65 |csname f|num@#1\e|
|000046d0| 6e 64 63 73 6e 61 6d 65 | 25 0a 20 20 20 20 7b 5c |ndcsname|%. {\|
|000046e0| 65 78 70 61 6e 64 61 66 | 74 65 72 5c 6e 6f 65 78 |expandaf|ter\noex|
|000046f0| 70 61 6e 64 5c 63 73 6e | 61 6d 65 20 66 6e 61 6d |pand\csn|ame fnam|
|00004700| 65 40 23 31 5c 65 6e 64 | 63 73 6e 61 6d 65 7b 7d |e@#1\end|csname{}|
|00004710| 0a 20 20 20 20 20 20 20 | 5c 65 78 70 61 6e 64 61 |. |\expanda|
|00004720| 66 74 65 72 5c 6e 6f 65 | 78 70 61 6e 64 5c 63 73 |fter\noe|xpand\cs|
|00004730| 6e 61 6d 65 20 74 68 65 | 23 31 5c 65 6e 64 63 73 |name the|#1\endcs|
|00004740| 6e 61 6d 65 7d 0a 25 20 | 20 20 20 5c 65 6e 64 7b |name}.% | \end{|
|00004750| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 25 20 46 69 6e |macrocod|e}.% Fin|
|00004760| 61 6c 6c 79 2c 20 77 65 | 20 68 61 76 65 20 74 6f |ally, we| have to|
|00004770| 20 74 61 6b 65 20 63 61 | 72 65 20 6f 66 20 74 68 | take ca|re of th|
|00004780| 65 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |e option|al argum|
|00004790| 65 6e 74 2c 20 5c 6d 65 | 74 61 7b 77 69 74 68 69 |ent, \me|ta{withi|
|000047a0| 6e 7d 2e 0a 25 20 49 66 | 20 74 68 65 20 6f 70 74 |n}..% If| the opt|
|000047b0| 69 6f 6e 61 6c 20 61 72 | 67 75 6d 65 6e 74 20 69 |ional ar|gument i|
|000047c0| 73 20 70 72 65 73 65 6e | 74 2c 20 77 65 20 70 61 |s presen|t, we pa|
|000047d0| 73 73 20 63 6f 6e 74 72 | 6f 6c 20 74 6f 20 7c 5c |ss contr|ol to |\|
|000047e0| 40 78 6e 65 77 66 6c 6f | 61 74 7c 2e 0a 25 20 4f |@xnewflo|at|..% O|
|000047f0| 74 68 65 72 77 69 73 65 | 2c 20 77 65 20 6a 75 73 |therwise|, we jus|
|00004800| 74 20 64 65 66 69 6e 65 | 20 74 68 65 20 63 6f 75 |t define| the cou|
|00004810| 6e 74 65 72 20 66 6f 72 | 20 74 68 69 73 20 63 6c |nter for| this cl|
|00004820| 61 73 73 20 6f 66 20 66 | 6c 6f 61 74 73 2e 0a 25 |ass of f|loats..%|
|00004830| 20 42 79 20 64 65 66 61 | 75 6c 74 2c 20 74 68 65 | By defa|ult, the|
|00004840| 20 6e 75 6d 62 65 72 73 | 20 63 6f 6d 65 20 6f 75 | numbers| come ou|
|00004850| 74 20 7c 5c 61 72 61 62 | 69 63 7c 2e 0a 25 20 20 |t |\arab|ic|..% |
|00004860| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|00004870| 64 65 7d 0a 20 20 5c 40 | 69 66 6e 65 78 74 63 68 |de}. \@|ifnextch|
|00004880| 61 72 5b 7b 5c 40 78 6e | 65 77 66 6c 6f 61 74 7b |ar[{\@xn|ewfloat{|
|00004890| 23 31 7d 7d 25 0a 20 20 | 20 20 7b 5c 40 69 66 75 |#1}}%. | {\@ifu|
|000048a0| 6e 64 65 66 69 6e 65 64 | 7b 63 40 23 31 7d 7b 5c |ndefined|{c@#1}{\|
|000048b0| 6e 65 77 63 6f 75 6e 74 | 65 72 7b 23 31 7d 5c 40 |newcount|er{#1}\@|
|000048c0| 6e 61 6d 65 64 65 66 7b | 74 68 65 23 31 7d 7b 5c |namedef{|the#1}{\|
|000048d0| 61 72 61 62 69 63 7b 23 | 31 7d 7d 7d 25 0a 20 20 |arabic{#|1}}}%. |
|000048e0| 20 20 20 20 7b 7d 7d 7d | 0a 25 20 20 20 20 5c 65 | {}}}|.% \e|
|000048f0| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 20 |nd{macro|code}.% |
|00004900| 5c 65 6e 64 7b 6d 61 63 | 72 6f 7d 0a 25 0a 25 20 |\end{mac|ro}.%.% |
|00004910| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 7d 7b 5c 40 |\begin{m|acro}{\@|
|00004920| 78 6e 65 77 66 6c 6f 61 | 74 7d 0a 25 20 48 65 72 |xnewfloa|t}.% Her|
|00004930| 65 20 77 65 20 64 65 61 | 6c 20 77 69 74 68 20 74 |e we dea|l with t|
|00004940| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |he optio|nal argu|
|00004950| 6d 65 6e 74 20 74 6f 20 | 7c 5c 6e 65 77 66 6c 6f |ment to ||\newflo|
|00004960| 61 74 7c 2e 20 57 65 20 | 68 61 76 65 0a 25 20 74 |at|. We |have.% t|
|00004970| 6f 20 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 63 |o create| a new c|
|00004980| 6f 75 6e 74 65 72 20 61 | 73 20 70 65 72 20 7c 5c |ounter a|s per |\|
|00004990| 6e 65 77 63 6f 75 6e 74 | 65 72 7b 7c 5c 6d 65 74 |newcount|er{|\met|
|000049a0| 61 7b 74 79 70 65 7d 7c | 7d 7c 0a 25 20 61 6e 64 |a{type}||}|.% and|
|000049b0| 20 61 64 64 20 74 68 61 | 74 20 63 6f 75 6e 74 65 | add tha|t counte|
|000049c0| 72 20 74 6f 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |r to the| list of|
|000049d0| 20 63 6f 75 6e 74 65 72 | 73 20 74 6f 20 62 65 20 | counter|s to be |
|000049e0| 72 65 73 65 74 20 77 68 | 65 6e 65 76 65 72 0a 25 |reset wh|enever.%|
|000049f0| 20 63 6f 75 6e 74 65 72 | 20 5c 6d 65 74 61 7b 77 | counter| \meta{w|
|00004a00| 69 74 68 69 6e 7d 20 69 | 73 20 73 74 65 70 70 65 |ithin} i|s steppe|
|00004a10| 64 2e 20 54 68 65 20 73 | 74 61 6e 64 61 72 64 20 |d. The s|tandard |
|00004a20| 63 6f 6d 6d 61 6e 64 0a | 25 20 7c 5c 6e 65 77 63 |command.|% |\newc|
|00004a30| 6f 75 6e 74 65 72 7b 7c | 5c 6d 65 74 61 7b 74 79 |ounter{||\meta{ty|
|00004a40| 70 65 7d 7c 7d 5b 7c 5c | 6d 65 74 61 7b 77 69 74 |pe}|}[|\|meta{wit|
|00004a50| 68 69 6e 7d 7b 5c 74 74 | 5d 7d 20 74 61 6b 65 73 |hin}{\tt|]} takes|
|00004a60| 20 63 61 72 65 20 6f 66 | 20 74 68 61 74 2e 0a 25 | care of| that..%|
|00004a70| 20 48 6f 77 65 76 65 72 | 2c 20 77 65 20 63 61 6e | However|, we can|
|00004a80| 27 74 20 64 65 66 69 6e | 65 20 74 68 65 20 5c 6d |'t defin|e the \m|
|00004a90| 65 74 61 7b 74 79 70 65 | 7d 20 63 6f 75 6e 74 65 |eta{type|} counte|
|00004aa0| 72 20 69 66 20 69 74 27 | 73 20 61 6c 72 65 61 64 |r if it'|s alread|
|00004ab0| 79 20 64 65 66 69 6e 65 | 64 2e 0a 25 20 57 68 69 |y define|d..% Whi|
|00004ac0| 6c 65 20 74 68 69 73 20 | 63 61 73 65 20 69 73 20 |le this |case is |
|00004ad0| 73 69 6d 70 6c 79 20 69 | 67 6e 6f 72 65 64 20 77 |simply i|gnored w|
|00004ae0| 68 65 6e 20 5c 6d 65 74 | 61 7b 77 69 74 68 69 6e |hen \met|a{within|
|00004af0| 7d 20 69 73 20 6e 6f 74 | 20 70 72 65 73 65 6e 74 |} is not| present|
|00004b00| 2c 0a 25 20 77 65 20 69 | 73 73 75 65 20 61 20 77 |,.% we i|ssue a w|
|00004b10| 61 72 6e 69 6e 67 20 68 | 65 72 65 20 73 69 6e 63 |arning h|ere sinc|
|00004b20| 65 20 77 68 61 74 20 63 | 6f 6d 65 73 20 6f 75 74 |e what c|omes out|
|00004b30| 20 69 73 20 70 72 6f 62 | 61 62 6c 79 20 6e 6f 74 | is prob|ably not|
|00004b40| 20 77 68 61 74 20 74 68 | 65 20 75 73 65 72 0a 25 | what th|e user.%|
|00004b50| 20 65 78 70 65 63 74 73 | 2e 0a 25 20 20 20 20 5c | expects|..% \|
|00004b60| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00004b70| 0a 5c 64 65 66 5c 40 78 | 6e 65 77 66 6c 6f 61 74 |.\def\@x|newfloat|
|00004b80| 23 31 5b 23 32 5d 7b 5c | 40 69 66 75 6e 64 65 66 |#1[#2]{\|@ifundef|
|00004b90| 69 6e 65 64 7b 63 40 23 | 31 7d 7b 5c 6e 65 77 63 |ined{c@#|1}{\newc|
|00004ba0| 6f 75 6e 74 65 72 7b 23 | 31 7d 5b 23 32 5d 25 0a |ounter{#|1}[#2]%.|
|00004bb0| 20 20 20 20 5c 65 78 70 | 61 6e 64 61 66 74 65 72 | \exp|andafter|
|00004bc0| 5c 65 64 65 66 5c 63 73 | 6e 61 6d 65 20 74 68 65 |\edef\cs|name the|
|00004bd0| 23 31 5c 65 6e 64 63 73 | 6e 61 6d 65 7b 25 0a 20 |#1\endcs|name{%. |
|00004be0| 20 20 20 20 20 5c 65 78 | 70 61 6e 64 61 66 74 65 | \ex|pandafte|
|00004bf0| 72 5c 6e 6f 65 78 70 61 | 6e 64 5c 63 73 6e 61 6d |r\noexpa|nd\csnam|
|00004c00| 65 0a 20 20 20 20 20 20 | 20 20 74 68 65 23 32 5c |e. | the#2\|
|00004c10| 65 6e 64 63 73 6e 61 6d | 65 2e 5c 6e 6f 65 78 70 |endcsnam|e.\noexp|
|00004c20| 61 6e 64 5c 61 72 61 62 | 69 63 7b 23 31 7d 7d 7d |and\arab|ic{#1}}}|
|00004c30| 25 0a 20 20 20 20 7b 5c | 50 61 63 6b 61 67 65 57 |%. {\|PackageW|
|00004c40| 61 72 6e 69 6e 67 7b 66 | 6c 6f 61 74 7d 7b 43 61 |arning{f|loat}{Ca|
|00004c50| 6e 27 74 20 72 65 64 65 | 66 69 6e 65 20 63 6f 75 |n't rede|fine cou|
|00004c60| 6e 74 65 72 20 76 61 72 | 69 61 62 6c 65 20 66 6f |nter var|iable fo|
|00004c70| 72 20 23 31 2e 7d 7d 7d | 0a 25 20 20 20 20 5c 65 |r #1.}}}|.% \e|
|00004c80| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 20 |nd{macro|code}.% |
|00004c90| 5c 65 6e 64 7b 6d 61 63 | 72 6f 7d 0a 25 20 0a 25 |\end{mac|ro}.% .%|
|00004ca0| 20 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 41 64 61 | \subsec|tion{Ada|
|00004cb0| 70 74 69 6e 67 20 5c 4c | 61 54 65 58 5c 20 69 6e |pting \L|aTeX\ in|
|00004cc0| 74 65 72 6e 61 6c 73 7d | 0a 25 0a 25 20 57 65 20 |ternals}|.%.% We |
|00004cd0| 68 61 76 65 20 74 6f 20 | 61 64 61 70 74 20 73 6f |have to |adapt so|
|00004ce0| 6d 65 20 6f 66 20 5c 4c | 61 54 65 58 27 73 20 69 |me of \L|aTeX's i|
|00004cf0| 6e 74 65 72 6e 61 6c 20 | 6d 61 63 72 6f 73 20 74 |nternal |macros t|
|00004d00| 6f 20 6f 75 72 20 6e 65 | 65 64 73 2e 0a 25 20 54 |o our ne|eds..% T|
|00004d10| 68 65 72 65 20 61 72 65 | 20 73 65 76 65 72 61 6c |here are| several|
|00004d20| 20 74 68 69 6e 67 73 20 | 74 68 61 74 20 68 61 76 | things |that hav|
|00004d30| 65 20 74 6f 20 62 65 20 | 63 68 61 6e 67 65 64 20 |e to be |changed |
|00004d40| 61 72 6f 75 6e 64 0a 25 | 20 69 6e 20 6f 72 64 65 |around.%| in orde|
|00004d50| 72 20 74 6f 20 70 72 6f | 76 69 64 65 20 74 68 65 |r to pro|vide the|
|00004d60| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 6f | functio|nality o|
|00004d70| 66 20 44 61 76 69 64 20 | 43 61 72 6c 69 73 6c 65 |f David |Carlisle|
|00004d80| 27 73 20 5c 74 65 78 74 | 73 66 7b 68 65 72 65 7d |'s \text|sf{here}|
|00004d90| 2e 0a 25 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |..% The |followin|
|00004da0| 67 20 69 73 20 74 68 75 | 73 20 6c 69 66 74 65 64 |g is thu|s lifted|
|00004db0| 20 66 72 6f 6d 20 5c 74 | 65 78 74 73 66 7b 68 65 | from \t|extsf{he|
|00004dc0| 72 65 7d 2c 20 77 69 74 | 68 20 63 68 61 6e 67 65 |re}, wit|h change|
|00004dd0| 73 20 61 6e 64 20 77 69 | 74 68 0a 25 20 44 61 76 |s and wi|th.% Dav|
|00004de0| 69 64 27 73 20 70 65 72 | 6d 69 73 73 69 6f 6e 3a |id's per|mission:|
|00004df0| 0a 25 0a 25 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |.%.% \be|gin{macr|
|00004e00| 6f 7d 7b 5c 40 48 78 66 | 6c 6f 61 74 7d 0a 25 20 |o}{\@Hxf|loat}.% |
|00004e10| 57 65 20 73 61 76 65 20 | 74 68 65 20 6f 72 69 67 |We save |the orig|
|00004e20| 69 6e 61 6c 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |inal ver|sion of |
|00004e30| 7c 5c 40 78 66 6c 6f 61 | 74 7c 2e 20 28 54 68 69 ||\@xfloa|t|. (Thi|
|00004e40| 73 20 6d 61 63 72 6f 20 | 69 73 20 63 61 6c 6c 65 |s macro |is calle|
|00004e50| 64 20 66 72 6f 6d 0a 25 | 20 7c 5c 40 66 6c 6f 61 |d from.%| |\@floa|
|00004e60| 74 7c 2c 20 77 68 69 63 | 68 20 77 65 20 75 73 65 |t|, whic|h we use|
|00004e70| 64 20 61 62 6f 76 65 20 | 74 6f 20 64 65 66 69 6e |d above |to defin|
|00004e80| 65 20 74 68 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |e the en|vironmen|
|00004e90| 74 20 63 6f 6d 6d 61 6e | 64 73 20 66 6f 72 20 61 |t comman|ds for a|
|00004ea0| 0a 25 20 6e 65 77 20 63 | 6c 61 73 73 20 6f 66 20 |.% new c|lass of |
|00004eb0| 66 6c 6f 61 74 73 2e 29 | 0a 25 20 20 20 20 5c 62 |floats.)|.% \b|
|00004ec0| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|00004ed0| 5c 6c 65 74 5c 40 48 78 | 66 6c 6f 61 74 5c 40 78 |\let\@Hx|float\@x|
|00004ee0| 66 6c 6f 61 74 0a 25 20 | 20 20 20 5c 65 6e 64 7b |float.% | \end{|
|00004ef0| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 25 20 5c 65 6e |macrocod|e}.% \en|
|00004f00| 64 7b 6d 61 63 72 6f 7d | 0a 25 20 5c 62 65 67 69 |d{macro}|.% \begi|
|00004f10| 6e 7b 6d 61 63 72 6f 7d | 7b 5c 40 78 66 6c 6f 61 |n{macro}|{\@xfloa|
|00004f20| 74 7d 0a 25 20 54 68 65 | 20 6e 65 77 20 76 65 72 |t}.% The| new ver|
|00004f30| 73 69 6f 6e 20 6f 66 20 | 7c 5c 40 78 66 6c 6f 61 |sion of ||\@xfloa|
|00004f40| 74 7c 20 6c 6f 6f 6b 73 | 20 66 6f 72 20 61 20 7c |t| looks| for a ||
|00004f50| 5b 48 5d 7c 20 61 72 67 | 75 6d 65 6e 74 2e 0a 25 |[H]| arg|ument..%|
|00004f60| 20 49 66 20 69 74 20 69 | 73 20 70 72 65 73 65 6e | If it i|s presen|
|00004f70| 74 20 7c 5c 40 48 48 66 | 6c 6f 61 74 7c 20 69 73 |t |\@HHf|loat| is|
|00004f80| 20 63 61 6c 6c 65 64 2c | 20 6f 74 68 65 72 77 69 | called,| otherwi|
|00004f90| 73 65 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |se the o|riginal |
|00004fa0| 6d 61 63 72 6f 0a 25 20 | 28 72 65 6e 61 6d 65 64 |macro.% |(renamed|
|00004fb0| 20 74 6f 20 7c 5c 40 48 | 78 66 6c 6f 61 74 7c 29 | to |\@H|xfloat|)|
|00004fc0| 20 69 73 20 63 61 6c 6c | 65 64 2e 0a 25 20 20 20 | is call|ed..% |
|00004fd0| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 63 6f 64 | \begin{|macrocod|
|00004fe0| 65 7d 0a 5c 64 65 66 5c | 40 78 66 6c 6f 61 74 23 |e}.\def\|@xfloat#|
|00004ff0| 31 5b 7b 5c 40 69 66 6e | 65 78 74 63 68 61 72 7b |1[{\@ifn|extchar{|
|00005000| 48 7d 7b 5c 40 48 48 66 | 6c 6f 61 74 7b 23 31 7d |H}{\@HHf|loat{#1}|
|00005010| 5b 7d 7b 5c 40 48 78 66 | 6c 6f 61 74 7b 23 31 7d |[}{\@Hxf|loat{#1}|
|00005020| 5b 7d 7d 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |[}}.% | \end{ma|
|00005030| 63 72 6f 63 6f 64 65 7d | 0a 25 20 5c 65 6e 64 7b |crocode}|.% \end{|
|00005040| 6d 61 63 72 6f 7d 0a 25 | 20 4c 61 74 65 72 20 6f |macro}.%| Later o|
|00005050| 6e 20 77 65 27 6c 6c 20 | 6e 65 65 64 20 61 20 62 |n we'll |need a b|
|00005060| 6f 78 20 74 6f 20 73 61 | 76 65 20 61 20 7c 5b 48 |ox to sa|ve a |[H|
|00005070| 5d 7c 20 66 6c 6f 61 74 | 2e 0a 25 20 20 20 20 5c |]| float|..% \|
|00005080| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00005090| 0a 5c 6e 65 77 73 61 76 | 65 62 6f 78 5c 66 6c 6f |.\newsav|ebox\flo|
|000050a0| 61 74 40 62 6f 78 0a 5c | 6e 65 77 69 66 5c 69 66 |at@box.\|newif\if|
|000050b0| 40 66 6c 73 74 79 6c 65 | 0a 25 20 20 20 20 5c 65 |@flstyle|.% \e|
|000050c0| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 20 |nd{macro|code}.% |
|000050d0| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 7d 7b 5c 40 |\begin{m|acro}{\@|
|000050e0| 48 48 66 6c 6f 61 74 7d | 0a 25 20 46 69 72 73 74 |HHfloat}|.% First|
|000050f0| 20 67 6f 62 62 6c 65 20 | 74 68 65 20 7c 5b 48 5d | gobble |the |[H]|
|00005100| 7c 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 5c 74 65 ||. Note |that \te|
|00005110| 78 74 74 74 7b 48 7d 20 | 73 68 6f 75 6c 64 20 6e |xttt{H} |should n|
|00005120| 6f 74 20 62 65 20 75 73 | 65 64 20 69 6e 0a 25 20 |ot be us|ed in.% |
|00005130| 63 6f 6e 6a 75 6e 63 74 | 69 6f 6e 20 77 69 74 68 |conjunct|ion with|
|00005140| 20 74 68 65 20 6f 74 68 | 65 72 20 70 6c 61 63 65 | the oth|er place|
|00005150| 6d 65 6e 74 20 6f 70 74 | 69 6f 6e 73 2c 20 6e 6f |ment opt|ions, no|
|00005160| 72 20 61 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |r as the| value o|
|00005170| 66 20 74 68 65 0a 25 20 | 64 65 66 61 75 6c 74 20 |f the.% |default |
|00005180| 70 6c 61 63 65 6d 65 6e | 74 2c 20 61 73 20 73 65 |placemen|t, as se|
|00005190| 74 20 69 6e 20 7c 5c 66 | 70 73 40 7c 7b 5c 69 74 |t in |\f|ps@|{\it|
|000051a0| 20 74 79 70 65 7d 2e 0a | 25 20 20 20 20 5c 62 65 | type}..|% \be|
|000051b0| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 5c |gin{macr|ocode}.\|
|000051c0| 64 65 66 5c 40 48 48 66 | 6c 6f 61 74 23 31 5b 48 |def\@HHf|loat#1[H|
|000051d0| 5d 7b 25 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |]{%.% | \end{ma|
|000051e0| 63 72 6f 63 6f 64 65 7d | 0a 25 20 4c 6f 63 61 6c |crocode}|.% Local|
|000051f0| 6c 79 20 72 65 64 65 66 | 69 6e 65 20 74 68 65 20 |ly redef|ine the |
|00005200| 65 6e 64 20 6f 66 20 74 | 68 65 20 65 6e 76 69 72 |end of t|he envir|
|00005210| 6f 6e 6d 65 6e 74 2e 0a | 25 20 20 20 20 5c 62 65 |onment..|% \be|
|00005220| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 20 |gin{macr|ocode}. |
|00005230| 20 5c 65 78 70 61 6e 64 | 61 66 74 65 72 5c 6c 65 | \expand|after\le|
|00005240| 74 5c 63 73 6e 61 6d 65 | 20 65 6e 64 23 31 5c 65 |t\csname| end#1\e|
|00005250| 6e 64 63 73 6e 61 6d 65 | 5c 66 6c 6f 61 74 40 65 |ndcsname|\float@e|
|00005260| 6e 64 48 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |ndH.% | \end{ma|
|00005270| 63 72 6f 63 6f 64 65 7d | 0a 25 20 57 65 20 64 6f |crocode}|.% We do|
|00005280| 6e 27 74 20 67 65 74 20 | 61 20 7c 5c 40 63 75 72 |n't get |a |\@cur|
|00005290| 72 62 6f 78 7c 20 69 66 | 20 77 65 20 64 6f 6e 27 |rbox| if| we don'|
|000052a0| 74 20 61 63 74 75 61 6c | 6c 79 20 75 73 65 20 74 |t actual|ly use t|
|000052b0| 68 65 20 66 6c 6f 61 74 | 20 6d 65 63 68 61 6e 69 |he float| mechani|
|000052c0| 73 6d 2e 0a 25 20 54 68 | 65 72 65 66 6f 72 65 20 |sm..% Th|erefore |
|000052d0| 77 65 20 66 61 6b 65 20 | 6f 6e 65 20 75 73 69 6e |we fake |one usin|
|000052e0| 67 20 74 68 65 20 7c 5c | 66 6c 6f 61 74 40 62 6f |g the |\|float@bo|
|000052f0| 78 7c 20 64 65 66 69 6e | 65 64 20 61 62 6f 76 65 |x| defin|ed above|
|00005300| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|00005310| 63 72 6f 63 6f 64 65 7d | 0a 20 20 5c 6c 65 74 5c |crocode}|. \let\|
|00005320| 40 63 75 72 72 62 6f 78 | 5c 66 6c 6f 61 74 40 62 |@currbox|\float@b|
|00005330| 6f 78 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |ox.% |\end{mac|
|00005340| 72 6f 63 6f 64 65 7d 0a | 25 20 4e 6f 77 20 77 65 |rocode}.|% Now we|
|00005350| 20 73 61 76 65 20 74 68 | 65 20 63 75 72 72 65 6e | save th|e curren|
|00005360| 74 20 66 6c 6f 61 74 20 | 63 6c 61 73 73 20 6e 61 |t float |class na|
|00005370| 6d 65 20 66 6f 72 20 75 | 73 65 20 69 6e 20 63 6f |me for u|se in co|
|00005380| 6e 73 74 72 75 63 74 69 | 6e 67 20 74 68 65 0a 25 |nstructi|ng the.%|
|00005390| 20 7c 5c 63 61 70 74 69 | 6f 6e 7c 2e 20 54 68 65 | |\capti|on|. The|
|000053a0| 20 63 61 70 74 69 6f 6e | 20 62 6f 78 20 28 64 65 | caption| box (de|
|000053b0| 66 69 6e 65 64 20 62 65 | 6c 6f 77 29 20 69 73 20 |fined be|low) is |
|000053c0| 69 6e 69 74 69 61 6c 69 | 73 65 64 20 74 6f 20 61 |initiali|sed to a|
|000053d0| 6e 20 65 6d 70 74 79 0a | 25 20 62 6f 78 20 74 6f |n empty.|% box to|
|000053e0| 20 61 76 6f 69 64 20 74 | 72 6f 75 62 6c 65 20 77 | avoid t|rouble w|
|000053f0| 69 74 68 20 66 6c 6f 61 | 74 73 20 6e 6f 74 20 68 |ith floa|ts not h|
|00005400| 61 76 69 6e 67 20 61 20 | 63 61 70 74 69 6f 6e 2e |aving a |caption.|
|00005410| 20 54 68 65 6e 20 77 65 | 20 73 74 61 72 74 20 74 | Then we| start t|
|00005420| 68 65 0a 25 20 62 6f 78 | 20 74 68 61 74 27 6c 6c |he.% box| that'll|
|00005430| 20 68 6f 6c 64 20 74 68 | 65 20 66 6c 6f 61 74 20 | hold th|e float |
|00005440| 69 74 73 65 6c 66 2e 0a | 25 20 7c 5c 70 61 72 69 |itself..|% |\pari|
|00005450| 6e 64 65 6e 74 7c 20 69 | 73 20 73 65 74 20 74 6f |ndent| i|s set to|
|00005460| 20 7a 65 72 6f 20 66 6f | 72 20 63 6f 6d 70 61 74 | zero fo|r compat|
|00005470| 69 62 69 6c 69 74 79 20 | 77 69 74 68 20 74 68 65 |ibility |with the|
|00005480| 20 73 74 61 6e 64 61 72 | 64 20 5c 74 65 78 74 74 | standar|d \textt|
|00005490| 74 7b 5b 68 5d 7d 0a 25 | 20 6f 70 74 69 6f 6e 2e |t{[h]}.%| option.|
|000054a0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|000054b0| 72 6f 63 6f 64 65 7d 0a | 20 20 5c 64 65 66 5c 40 |rocode}.| \def\@|
|000054c0| 63 61 70 74 79 70 65 7b | 23 31 7d 5c 73 65 74 62 |captype{|#1}\setb|
|000054d0| 6f 78 5c 40 66 6c 6f 61 | 74 63 61 70 74 3d 5c 76 |ox\@floa|tcapt=\v|
|000054e0| 62 6f 78 7b 7d 25 0a 20 | 20 5c 65 78 70 61 6e 64 |box{}%. | \expand|
|000054f0| 61 66 74 65 72 5c 69 66 | 78 5c 63 73 6e 61 6d 65 |after\if|x\csname|
|00005500| 20 66 73 74 40 23 31 5c | 65 6e 64 63 73 6e 61 6d | fst@#1\|endcsnam|
|00005510| 65 5c 72 65 6c 61 78 0a | 20 20 20 20 5c 40 66 6c |e\relax.| \@fl|
|00005520| 73 74 79 6c 65 66 61 6c | 73 65 5c 65 6c 73 65 5c |stylefal|se\else\|
|00005530| 40 66 6c 73 74 79 6c 65 | 74 72 75 65 5c 66 69 0a |@flstyle|true\fi.|
|00005540| 20 20 5c 73 65 74 62 6f | 78 5c 40 63 75 72 72 62 | \setbo|x\@currb|
|00005550| 6f 78 3d 5c 76 62 6f 78 | 5c 62 67 72 6f 75 70 5c |ox=\vbox|\bgroup\|
|00005560| 70 61 72 69 6e 64 65 6e | 74 5c 7a 40 0a 25 20 20 |parinden|t\z@.% |
|00005570| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00005580| 7d 0a 25 20 54 68 65 20 | 66 69 6e 61 6c 20 7c 5c |}.% The |final |\|
|00005590| 69 67 6e 6f 72 65 73 70 | 61 63 65 73 7c 20 69 73 |ignoresp|aces| is|
|000055a0| 20 6e 65 65 64 65 64 20 | 74 6f 20 67 6f 62 62 6c | needed |to gobbl|
|000055b0| 65 20 61 6e 79 20 73 70 | 61 63 65 73 20 6f 72 20 |e any sp|aces or |
|000055c0| 6e 65 77 6c 69 6e 65 73 | 0a 25 20 61 66 74 65 72 |newlines|.% after|
|000055d0| 20 74 68 65 20 7b 5c 74 | 74 5b 48 5d 7d 20 74 6f | the {\t|t[H]} to|
|000055e0| 6b 65 6e 73 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |kens..% | \begi|
|000055f0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 20 20 5c |n{macroc|ode}. \|
|00005600| 69 67 6e 6f 72 65 73 70 | 61 63 65 73 7d 0a 25 20 |ignoresp|aces}.% |
|00005610| 20 20 20 5c 65 6e 64 7b | 6d 61 63 72 6f 63 6f 64 | \end{|macrocod|
|00005620| 65 7d 0a 25 20 5c 65 6e | 64 7b 6d 61 63 72 6f 7d |e}.% \en|d{macro}|
|00005630| 0a 25 0a 25 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |.%.% \be|gin{macr|
|00005640| 6f 7d 7b 5c 66 6c 6f 61 | 74 40 6d 61 6b 65 62 6f |o}{\floa|t@makebo|
|00005650| 78 7d 0a 25 20 42 61 73 | 69 63 61 6c 6c 79 2c 20 |x}.% Bas|ically, |
|00005660| 77 65 20 6d 75 73 74 20 | 61 72 72 61 6e 67 65 20 |we must |arrange |
|00005670| 66 6f 72 20 60 73 74 79 | 6c 65 20 63 6f 6d 6d 61 |for `sty|le comma|
|00005680| 6e 64 73 27 20 74 6f 20 | 62 65 20 65 78 65 63 75 |nds' to |be execu|
|00005690| 74 65 64 0a 25 20 61 74 | 20 63 65 72 74 61 69 6e |ted.% at| certain|
|000056a0| 20 70 6f 69 6e 74 73 20 | 64 75 72 69 6e 67 20 74 | points |during t|
|000056b0| 68 65 20 67 65 6e 65 72 | 61 74 69 6f 6e 20 6f 66 |he gener|ation of|
|000056c0| 20 74 68 65 20 66 6c 6f | 61 74 2e 0a 25 20 5c 4c | the flo|at..% \L|
|000056d0| 61 54 65 58 5c 20 70 75 | 74 73 20 61 20 66 6c 6f |aTeX\ pu|ts a flo|
|000056e0| 61 74 20 69 6e 74 6f 20 | 61 20 76 65 72 74 69 63 |at into |a vertic|
|000056f0| 61 6c 20 62 6f 78 20 7c | 5c 40 63 75 72 72 62 6f |al box ||\@currbo|
|00005700| 78 7c 20 77 68 69 63 68 | 20 69 74 20 74 61 6b 65 |x| which| it take|
|00005710| 73 0a 25 20 6f 66 66 20 | 61 20 6c 69 73 74 20 6f |s.% off |a list o|
|00005720| 66 20 65 6d 70 74 79 20 | 62 6f 78 65 73 20 66 6f |f empty |boxes fo|
|00005730| 72 20 69 6e 73 65 72 74 | 69 6f 6e 73 2e 20 57 68 |r insert|ions. Wh|
|00005740| 65 6e 20 74 68 65 20 7c | 5c 66 6c 6f 61 74 40 6d |en the ||\float@m|
|00005750| 61 6b 65 62 6f 78 7c 20 | 6d 61 63 72 6f 0a 25 20 |akebox| |macro.% |
|00005760| 69 73 20 63 61 6c 6c 65 | 64 2c 20 7c 5c 40 63 75 |is calle|d, |\@cu|
|00005770| 72 72 62 6f 78 7c 20 63 | 6f 6e 74 61 69 6e 73 20 |rrbox| c|ontains |
|00005780| 74 68 65 20 63 6f 6d 70 | 6c 65 74 65 20 66 6c 6f |the comp|lete flo|
|00005790| 61 74 2c 20 6d 69 6e 75 | 73 20 74 68 65 20 63 61 |at, minu|s the ca|
|000057a0| 70 74 69 6f 6e 0a 25 20 | 2d 2d 2d 20 77 65 27 6c |ption.% |--- we'l|
|000057b0| 6c 20 73 65 65 20 6c 61 | 74 65 72 20 74 68 61 74 |l see la|ter that|
|000057c0| 20 77 65 20 75 73 65 20 | 6f 75 72 20 6f 77 6e 20 | we use |our own |
|000057d0| 7c 5c 63 61 70 74 69 6f | 6e 7c 20 63 6f 6d 6d 61 ||\captio|n| comma|
|000057e0| 6e 64 20 74 6f 0a 25 20 | 70 75 74 20 74 68 65 20 |nd to.% |put the |
|000057f0| 63 61 70 74 69 6f 6e 20 | 69 6e 74 6f 20 61 20 7c |caption |into a ||
|00005800| 5c 76 62 6f 78 7c 20 6f | 66 20 69 74 73 20 6f 77 |\vbox| o|f its ow|
|00005810| 6e 2e 20 54 68 69 73 20 | 69 73 20 74 68 65 20 6f |n. This |is the o|
|00005820| 6e 6c 79 20 77 61 79 0a | 25 20 77 65 20 63 61 6e |nly way.|% we can|
|00005830| 20 63 6f 6e 74 72 6f 6c | 20 74 68 65 20 70 6f 73 | control| the pos|
|00005840| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 63 61 70 |ition of| the cap|
|00005850| 74 69 6f 6e 20 62 79 20 | 74 68 65 20 66 6c 6f 61 |tion by |the floa|
|00005860| 74 20 73 74 79 6c 65 2c | 0a 25 20 72 65 67 61 72 |t style,|.% regar|
|00005870| 64 6c 65 73 73 20 6f 66 | 20 77 68 65 72 65 20 74 |dless of| where t|
|00005880| 68 65 20 63 61 70 74 69 | 6f 6e 20 61 70 70 65 61 |he capti|on appea|
|00005890| 72 73 20 69 6e 20 74 68 | 65 20 66 6c 6f 61 74 27 |rs in th|e float'|
|000058a0| 73 20 69 6e 70 75 74 20 | 74 65 78 74 20 69 74 73 |s input |text its|
|000058b0| 65 6c 66 2e 0a 25 20 53 | 6f 20 74 68 65 20 60 73 |elf..% S|o the `s|
|000058c0| 74 79 6c 65 20 63 6f 6d | 6d 61 6e 64 73 27 20 61 |tyle com|mands' a|
|000058d0| 72 65 20 7c 5c 40 66 73 | 40 70 72 65 7c 2c 20 77 |re |\@fs|@pre|, w|
|000058e0| 68 69 63 68 20 69 73 20 | 69 6e 73 65 72 74 65 64 |hich is |inserted|
|000058f0| 20 61 74 20 74 68 65 0a | 25 20 76 65 72 79 20 62 | at the.|% very b|
|00005900| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 |eginning| of the |
|00005910| 66 6c 6f 61 74 2c 20 7c | 5c 40 66 73 40 6d 69 64 |float, ||\@fs@mid|
|00005920| 7c 2c 20 77 68 69 63 68 | 20 63 6f 6d 65 73 20 62 ||, which| comes b|
|00005930| 65 74 77 65 65 6e 20 74 | 68 65 0a 25 20 66 6c 6f |etween t|he.% flo|
|00005940| 61 74 20 61 6e 64 20 74 | 68 65 20 63 61 70 74 69 |at and t|he capti|
|00005950| 6f 6e 20 28 6f 72 20 74 | 68 65 20 63 61 70 74 69 |on (or t|he capti|
|00005960| 6f 6e 20 61 6e 64 20 74 | 68 65 20 66 6c 6f 61 74 |on and t|he float|
|00005970| 2c 20 69 66 20 63 61 70 | 74 69 6f 6e 73 20 61 72 |, if cap|tions ar|
|00005980| 65 20 70 75 74 0a 25 20 | 61 74 20 74 68 65 20 74 |e put.% |at the t|
|00005990| 6f 70 29 2c 20 61 6e 64 | 20 7c 5c 40 66 73 40 70 |op), and| |\@fs@p|
|000059a0| 6f 73 74 7c 2c 20 77 68 | 69 63 68 20 66 69 6e 69 |ost|, wh|ich fini|
|000059b0| 73 68 65 73 20 6f 66 66 | 20 74 68 65 20 66 6c 6f |shes off| the flo|
|000059c0| 61 74 2e 0a 25 20 54 68 | 65 20 63 61 70 74 69 6f |at..% Th|e captio|
|000059d0| 6e 20 6d 61 79 20 61 70 | 70 65 61 72 20 61 74 20 |n may ap|pear at |
|000059e0| 74 68 65 20 74 6f 70 20 | 6f 72 20 61 74 20 74 68 |the top |or at th|
|000059f0| 65 20 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |e bottom| of the |
|00005a00| 66 6c 6f 61 74 2c 0a 25 | 20 61 73 20 64 65 66 69 |float,.%| as defi|
|00005a10| 6e 65 64 20 62 79 20 7c | 5c 40 66 73 40 69 66 74 |ned by ||\@fs@ift|
|00005a20| 6f 70 63 61 70 74 7c 2e | 20 54 68 65 72 65 66 6f |opcapt|.| Therefo|
|00005a30| 72 65 2c 20 62 65 66 6f | 72 65 20 77 65 20 68 61 |re, befo|re we ha|
|00005a40| 6e 64 20 74 68 65 0a 25 | 20 66 6c 6f 61 74 20 74 |nd the.%| float t|
|00005a50| 6f 20 5c 4c 61 54 65 58 | 5c 20 66 6f 72 20 70 6f |o \LaTeX|\ for po|
|00005a60| 73 69 74 69 6f 6e 69 6e | 67 2c 20 69 74 20 69 73 |sitionin|g, it is|
|00005a70| 20 74 61 6b 65 6e 20 61 | 70 61 72 74 20 61 6e 64 | taken a|part and|
|00005a80| 20 72 65 61 73 73 65 6d | 62 6c 65 64 0a 25 20 75 | reassem|bled.% u|
|00005a90| 73 69 6e 67 20 74 68 65 | 20 73 74 79 6c 65 20 63 |sing the| style c|
|00005aa0| 6f 6d 6d 61 6e 64 73 2e | 0a 25 20 20 20 20 5c 62 |ommands.|.% \b|
|00005ab0| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|00005ac0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 5c 66 6c 6f 61 |\newcomm|and\floa|
|00005ad0| 74 40 6d 61 6b 65 62 6f | 78 7b 25 0a 20 20 5c 76 |t@makebo|x{%. \v|
|00005ae0| 62 6f 78 7b 5c 68 73 69 | 7a 65 5c 63 6f 6c 75 6d |box{\hsi|ze\colum|
|00005af0| 6e 77 69 64 74 68 20 5c | 40 70 61 72 62 6f 78 72 |nwidth \|@parboxr|
|00005b00| 65 73 74 6f 72 65 0a 20 | 20 20 20 5c 40 66 73 40 |estore. | \@fs@|
|00005b10| 70 72 65 5c 40 66 73 40 | 69 66 74 6f 70 63 61 70 |pre\@fs@|iftopcap|
|00005b20| 74 0a 20 20 20 20 20 20 | 5c 69 66 76 62 6f 78 5c |t. |\ifvbox\|
|00005b30| 40 66 6c 6f 61 74 63 61 | 70 74 5c 75 6e 76 62 6f |@floatca|pt\unvbo|
|00005b40| 78 5c 40 66 6c 6f 61 74 | 63 61 70 74 5c 70 61 72 |x\@float|capt\par|
|00005b50| 5c 40 66 73 40 6d 69 64 | 5c 66 69 0a 20 20 20 20 |\@fs@mid|\fi. |
|00005b60| 20 20 5c 75 6e 76 62 6f | 78 5c 40 63 75 72 72 62 | \unvbo|x\@currb|
|00005b70| 6f 78 0a 20 20 20 20 5c | 65 6c 73 65 5c 75 6e 76 |ox. \|else\unv|
|00005b80| 62 6f 78 5c 40 63 75 72 | 72 62 6f 78 0a 20 20 20 |box\@cur|rbox. |
|00005b90| 20 20 20 5c 69 66 76 62 | 6f 78 5c 40 66 6c 6f 61 | \ifvb|ox\@floa|
|00005ba0| 74 63 61 70 74 5c 70 61 | 72 5c 40 66 73 40 6d 69 |tcapt\pa|r\@fs@mi|
|00005bb0| 64 5c 75 6e 76 62 6f 78 | 5c 40 66 6c 6f 61 74 63 |d\unvbox|\@floatc|
|00005bc0| 61 70 74 5c 66 69 0a 20 | 20 20 20 5c 66 69 5c 70 |apt\fi. | \fi\p|
|00005bd0| 61 72 5c 40 66 73 40 70 | 6f 73 74 5c 76 73 6b 69 |ar\@fs@p|ost\vski|
|00005be0| 70 5c 7a 40 7d 7d 0a 25 | 20 20 20 20 5c 65 6e 64 |p\z@}}.%| \end|
|00005bf0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 5c 65 |{macroco|de}.% \e|
|00005c00| 6e 64 7b 6d 61 63 72 6f | 7d 0a 25 20 5c 62 65 67 |nd{macro|}.% \beg|
|00005c10| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 66 6c 6f 61 74 |in{macro|}{\float|
|00005c20| 40 65 6e 64 7d 0a 25 20 | 54 68 65 20 69 6e 74 65 |@end}.% |The inte|
|00005c30| 72 6e 61 6c 20 6d 61 63 | 72 6f 20 7c 5c 65 6e 64 |rnal mac|ro |\end|
|00005c40| 40 66 6c 6f 61 74 7c 20 | 61 70 70 65 61 72 73 20 |@float| |appears |
|00005c50| 68 65 72 65 20 75 6e 64 | 65 72 20 74 68 65 20 6e |here und|er the n|
|00005c60| 61 6d 65 20 6f 66 20 7c | 5c 66 6c 6f 61 74 40 65 |ame of ||\float@e|
|00005c70| 6e 64 7c 2e 0a 25 20 54 | 68 65 20 6d 61 69 6e 20 |nd|..% T|he main |
|00005c80| 74 68 69 6e 67 20 77 68 | 69 63 68 20 69 73 20 63 |thing wh|ich is c|
|00005c90| 68 61 6e 67 65 64 20 69 | 73 20 74 68 61 74 20 77 |hanged i|s that w|
|00005ca0| 65 20 63 61 6c 6c 20 7c | 5c 66 6c 6f 61 74 40 6d |e call ||\float@m|
|00005cb0| 61 6b 65 62 6f 78 7c 20 | 74 6f 0a 25 20 72 65 63 |akebox| |to.% rec|
|00005cc0| 6f 6e 73 74 72 75 63 74 | 20 74 68 65 20 66 6c 6f |onstruct| the flo|
|00005cd0| 61 74 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |at accor|ding to |
|00005ce0| 74 68 65 20 66 6c 6f 61 | 74 20 73 74 79 6c 65 2e |the floa|t style.|
|00005cf0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00005d00| 72 6f 63 6f 64 65 7d 0a | 5c 6e 65 77 63 6f 6d 6d |rocode}.|\newcomm|
|00005d10| 61 6e 64 5c 66 6c 6f 61 | 74 40 65 6e 64 7b 5c 65 |and\floa|t@end{\e|
|00005d20| 67 72 6f 75 70 0a 20 20 | 5c 67 6c 6f 62 61 6c 5c |group. |\global\|
|00005d30| 73 65 74 62 6f 78 5c 40 | 63 75 72 72 62 6f 78 5c |setbox\@|currbox\|
|00005d40| 66 6c 6f 61 74 40 6d 61 | 6b 65 62 6f 78 0a 25 20 |float@ma|kebox.% |
|00005d50| 20 20 20 5c 65 6e 64 7b | 6d 61 63 72 6f 63 6f 64 | \end{|macrocod|
|00005d60| 65 7d 0a 25 20 4e 6f 77 | 20 5c 4c 61 54 65 58 5c |e}.% Now| \LaTeX\|
|00005d70| 20 74 61 6b 65 73 20 6f | 76 65 72 20 61 67 61 69 | takes o|ver agai|
|00005d80| 6e 2e 0a 25 20 20 20 20 | 5c 62 65 67 69 6e 7b 6d |n..% |\begin{m|
|00005d90| 61 63 72 6f 63 6f 64 65 | 7d 0a 20 20 20 5c 69 66 |acrocode|}. \if|
|00005da0| 6e 75 6d 5c 40 66 6c 6f | 61 74 70 65 6e 61 6c 74 |num\@flo|atpenalt|
|00005db0| 79 20 3c 5c 7a 40 20 5c | 40 63 6f 6e 73 5c 40 63 |y <\z@ \|@cons\@c|
|00005dc0| 75 72 72 6c 69 73 74 5c | 40 63 75 72 72 62 6f 78 |urrlist\|@currbox|
|00005dd0| 0a 20 20 20 20 20 5c 69 | 66 64 69 6d 20 5c 68 74 |. \i|fdim \ht|
|00005de0| 5c 40 63 75 72 72 62 6f | 78 20 3e 5c 74 65 78 74 |\@currbo|x >\text|
|00005df0| 68 65 69 67 68 74 20 0a | 20 20 20 20 20 20 20 20 |height .| |
|00005e00| 5c 68 74 5c 40 63 75 72 | 72 62 6f 78 5c 74 65 78 |\ht\@cur|rbox\tex|
|00005e10| 74 68 65 69 67 68 74 20 | 5c 66 69 0a 20 20 20 20 |theight |\fi. |
|00005e20| 20 5c 69 66 6e 75 6d 5c | 40 66 6c 6f 61 74 70 65 | \ifnum\|@floatpe|
|00005e30| 6e 61 6c 74 79 20 3c 20 | 2d 5c 40 4d 69 69 20 0a |nalty < |-\@Mii .|
|00005e40| 20 20 20 20 20 20 20 20 | 5c 70 65 6e 61 6c 74 79 | |\penalty|
|00005e50| 20 2d 5c 40 4d 69 76 20 | 5c 40 74 65 6d 70 64 69 | -\@Miv |\@tempdi|
|00005e60| 6d 61 5c 70 72 65 76 64 | 65 70 74 68 0a 20 20 20 |ma\prevd|epth. |
|00005e70| 20 20 20 20 20 5c 76 62 | 6f 78 7b 7d 5c 70 72 65 | \vb|ox{}\pre|
|00005e80| 76 64 65 70 74 68 20 5c | 40 74 65 6d 70 64 69 6d |vdepth \|@tempdim|
|00005e90| 61 20 5c 70 65 6e 61 6c | 74 79 5c 40 66 6c 6f 61 |a \penal|ty\@floa|
|00005ea0| 74 70 65 6e 61 6c 74 79 | 0a 20 20 20 20 20 20 5c |tpenalty|. \|
|00005eb0| 65 6c 73 65 20 5c 76 61 | 64 6a 75 73 74 7b 5c 70 |else \va|djust{\p|
|00005ec0| 65 6e 61 6c 74 79 20 2d | 5c 40 4d 69 76 0a 20 20 |enalty -|\@Miv. |
|00005ed0| 20 20 20 20 20 20 5c 76 | 62 6f 78 7b 7d 5c 70 65 | \v|box{}\pe|
|00005ee0| 6e 61 6c 74 79 5c 40 66 | 6c 6f 61 74 70 65 6e 61 |nalty\@f|loatpena|
|00005ef0| 6c 74 79 7d 5c 40 45 73 | 70 68 61 63 6b 0a 20 20 |lty}\@Es|phack. |
|00005f00| 20 20 20 5c 66 69 5c 66 | 69 5c 65 67 72 6f 75 70 | \fi\f|i\egroup|
|00005f10| 7d 0a 25 20 20 20 20 5c | 65 6e 64 7b 6d 61 63 72 |}.% \|end{macr|
|00005f20| 6f 63 6f 64 65 7d 0a 25 | 20 28 54 68 65 20 66 69 |ocode}.%| (The fi|
|00005f30| 6e 61 6c 20 7c 5c 65 67 | 72 6f 75 70 7c 20 69 73 |nal |\eg|roup| is|
|00005f40| 20 6e 6f 74 20 70 72 65 | 73 65 6e 74 20 69 6e 20 | not pre|sent in |
|00005f50| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 64 65 66 |the orig|inal def|
|00005f60| 69 6e 69 74 69 6f 6e 3b | 0a 25 20 77 65 20 6e 65 |inition;|.% we ne|
|00005f70| 65 64 20 69 74 20 74 6f | 20 66 69 6e 69 73 68 20 |ed it to| finish |
|00005f80| 6f 66 66 20 74 68 65 20 | 7c 5c 62 67 72 6f 75 70 |off the ||\bgroup|
|00005f90| 7c 20 74 68 61 74 20 70 | 72 65 63 65 64 65 73 20 || that p|recedes |
|00005fa0| 74 68 65 0a 25 20 7c 5c | 40 6e 61 6d 65 75 73 65 |the.% |\|@nameuse|
|00005fb0| 7c 20 69 6e 20 74 68 65 | 20 7c 5c 62 65 67 69 6e || in the| |\begin|
|00005fc0| 7b 7c 5c 6d 65 74 61 7b | 66 6c 6f 61 74 7d 7c 7d |{|\meta{|float}|}|
|00005fd0| 7c 20 63 6f 6d 6d 61 6e | 64 73 2e 0a 25 20 54 68 || comman|ds..% Th|
|00005fe0| 69 73 20 69 73 20 74 6f | 20 6b 65 65 70 20 74 68 |is is to| keep th|
|00005ff0| 65 20 73 74 79 6c 65 20 | 63 6f 6d 6d 61 6e 64 73 |e style |commands|
|00006000| 20 6c 6f 63 61 6c 2e 29 | 0a 25 20 5c 65 6e 64 7b | local.)|.% \end{|
|00006010| 6d 61 63 72 6f 7d 0a 25 | 0a 25 20 5c 62 65 67 69 |macro}.%|.% \begi|
|00006020| 6e 7b 6d 61 63 72 6f 7d | 7b 5c 66 6c 6f 61 74 40 |n{macro}|{\float@|
|00006030| 65 6e 64 48 7d 0a 25 20 | 54 68 65 20 7c 5c 66 6c |endH}.% |The |\fl|
|00006040| 6f 61 74 40 65 6e 64 48 | 7c 20 63 6f 6d 6d 61 6e |oat@endH|| comman|
|00006050| 64 20 69 73 2c 20 61 67 | 61 69 6e 2c 20 64 65 72 |d is, ag|ain, der|
|00006060| 69 76 65 64 20 66 72 6f | 6d 20 5c 74 65 78 74 73 |ived fro|m \texts|
|00006070| 66 7b 68 65 72 65 7d 2e | 20 49 74 27 6c 6c 0a 25 |f{here}.| It'll.%|
|00006080| 20 64 65 61 6c 20 63 6f | 72 72 65 63 74 6c 79 20 | deal co|rrectly |
|00006090| 77 69 74 68 20 61 20 6e | 6f 6e 2d 66 6c 6f 61 74 |with a n|on-float|
|000060a0| 69 6e 67 20 66 6c 6f 61 | 74 2c 20 69 6e 73 65 72 |ing floa|t, inser|
|000060b0| 74 69 6e 67 20 74 68 65 | 20 70 72 6f 70 65 72 20 |ting the| proper |
|000060c0| 61 6d 6f 75 6e 74 73 0a | 25 20 6f 66 20 77 68 69 |amounts.|% of whi|
|000060d0| 74 65 20 73 70 61 63 65 | 20 61 62 6f 76 65 20 61 |te space| above a|
|000060e0| 6e 64 20 62 65 6c 6f 77 | 2e 0a 25 20 20 20 20 5c |nd below|..% \|
|000060f0| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00006100| 0a 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 5c 66 6c 6f |.\newcom|mand\flo|
|00006110| 61 74 40 65 6e 64 48 7b | 5c 65 67 72 6f 75 70 20 |at@endH{|\egroup |
|00006120| 5c 76 73 6b 69 70 5c 69 | 6e 74 65 78 74 73 65 70 |\vskip\i|ntextsep|
|00006130| 0a 20 20 5c 69 66 40 66 | 6c 73 74 79 6c 65 5c 66 |. \if@f|lstyle\f|
|00006140| 6c 6f 61 74 40 6d 61 6b | 65 62 6f 78 5c 65 67 72 |loat@mak|ebox\egr|
|00006150| 6f 75 70 5c 65 6c 73 65 | 5c 62 6f 78 5c 40 63 75 |oup\else|\box\@cu|
|00006160| 72 72 62 6f 78 5c 66 69 | 0a 20 20 5c 76 73 6b 69 |rrbox\fi|. \vski|
|00006170| 70 5c 69 6e 74 65 78 74 | 73 65 70 5c 72 65 6c 61 |p\intext|sep\rela|
|00006180| 78 7d 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |x}.% |\end{mac|
|00006190| 72 6f 63 6f 64 65 7d 0a | 25 20 5c 65 6e 64 7b 6d |rocode}.|% \end{m|
|000061a0| 61 63 72 6f 7d 0a 25 0a | 25 20 5c 62 65 67 69 6e |acro}.%.|% \begin|
|000061b0| 7b 6d 61 63 72 6f 7d 7b | 5c 66 6c 6f 61 74 40 64 |{macro}{|\float@d|
|000061c0| 62 6c 65 6e 64 7d 0a 25 | 20 54 68 65 20 7c 5c 66 |blend}.%| The |\f|
|000061d0| 6c 6f 61 74 40 64 62 6c | 65 6e 64 7c 20 6d 61 63 |loat@dbl|end| mac|
|000061e0| 72 6f 20 69 73 20 61 6e | 20 61 6c 6d 6f 73 74 2d |ro is an| almost-|
|000061f0| 76 65 72 62 61 74 69 6d | 20 63 6f 70 79 20 6f 66 |verbatim| copy of|
|00006200| 0a 25 20 7c 5c 65 6e 64 | 40 64 62 6c 66 6c 6f 61 |.% |\end|@dblfloa|
|00006210| 74 7c 20 62 75 74 20 66 | 6f 72 20 74 68 65 20 6c |t| but f|or the l|
|00006220| 61 73 74 20 70 61 72 74 | 2c 20 66 72 6f 6d 20 7c |ast part|, from ||
|00006230| 5c 66 69 5c 65 67 72 6f | 75 70 7c 20 6f 6e 2e 0a |\fi\egro|up| on..|
|00006240| 25 20 54 68 65 20 7c 5c | 65 67 72 6f 75 70 7c 20 |% The |\|egroup| |
|00006250| 69 73 2c 20 6f 66 20 63 | 6f 75 72 73 65 2c 20 6e |is, of c|ourse, n|
|00006260| 65 63 65 73 73 61 72 79 | 20 62 65 63 61 75 73 65 |ecessary| because|
|00006270| 20 6f 66 20 74 68 65 20 | 7c 5c 62 67 72 6f 75 70 | of the ||\bgroup|
|00006280| 7c 0a 25 20 61 74 20 74 | 68 65 20 76 65 72 79 20 ||.% at t|he very |
|00006290| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|000062a0| 20 66 6c 6f 61 74 2e 20 | 41 6e 64 20 77 65 20 68 | float. |And we h|
|000062b0| 61 76 65 20 74 6f 20 63 | 61 6c 6c 20 7c 5c 66 6c |ave to c|all |\fl|
|000062c0| 6f 61 74 40 65 6e 64 7c | 0a 25 20 69 6e 73 74 65 |oat@end||.% inste|
|000062d0| 61 64 20 6f 66 20 7c 5c | 65 6e 64 40 66 6c 6f 61 |ad of |\|end@floa|
|000062e0| 74 7c 2c 20 6e 61 74 75 | 72 61 6c 6c 79 2e 0a 25 |t|, natu|rally..%|
|000062f0| 20 20 20 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f | \beg|in{macro|
|00006300| 63 6f 64 65 7d 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |code}.\n|ewcomman|
|00006310| 64 5c 66 6c 6f 61 74 40 | 64 62 6c 65 6e 64 7b 5c |d\float@|dblend{\|
|00006320| 69 66 40 74 77 6f 63 6f | 6c 75 6d 6e 0a 20 20 5c |if@twoco|lumn. \|
|00006330| 70 61 72 5c 76 73 6b 69 | 70 5c 7a 40 5c 65 67 72 |par\vski|p\z@\egr|
|00006340| 6f 75 70 0a 20 20 5c 69 | 66 6e 75 6d 5c 40 66 6c |oup. \i|fnum\@fl|
|00006350| 6f 61 74 70 65 6e 61 6c | 74 79 20 3c 5c 7a 40 20 |oatpenal|ty <\z@ |
|00006360| 5c 40 63 6f 6e 73 5c 40 | 64 62 6c 64 65 66 65 72 |\@cons\@|dbldefer|
|00006370| 6c 69 73 74 5c 40 63 75 | 72 72 62 6f 78 5c 66 69 |list\@cu|rrbox\fi|
|00006380| 0a 20 20 20 20 5c 69 66 | 6e 75 6d 20 5c 40 66 6c |. \if|num \@fl|
|00006390| 6f 61 74 70 65 6e 61 6c | 74 79 20 3d 2d 5c 40 4d |oatpenal|ty =-\@M|
|000063a0| 69 69 20 5c 40 45 73 70 | 68 61 63 6b 5c 66 69 5c |ii \@Esp|hack\fi\|
|000063b0| 65 67 72 6f 75 70 5c 65 | 6c 73 65 5c 66 6c 6f 61 |egroup\e|lse\floa|
|000063c0| 74 40 65 6e 64 5c 66 69 | 7d 0a 25 20 20 20 20 5c |t@end\fi|}.% \|
|000063d0| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|000063e0| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 7d 0a 25 0a 25 | \end{ma|cro}.%.%|
|000063f0| 20 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 43 61 70 | \subsec|tion{Cap|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.